Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Job - setMaxParallelism


Job - setMaxParallelism

Description :

This command sets the max parallelism of a job identified by its DBKey. You can pass 0 as the second argument to set the max parallelism to unlimited. This command returns the handle of the updated job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

The DB Key of the job

maxParallelism

Integer

The max parallelism of the job

Example

The following example set the max parallelism of a deploy job to 10, and then set it back to unlimited.

Script





JOBKEY='blcli DeployJob getDBKeyByGroupAndName /default job1'

NEWJOBKEY='blcli Job setMaxParallelism $JOBKEY 10'

NEWJOBKEY1='blcli Job setMaxParallelism $NEWJOBKEY 0'



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*