ExecutionTask - createExecutionTask_2
This command creates an execution task for a given job with the specified name, description and shouldUseJobTargets flag. This command returns the handle of the execution task.
Return type : DBKey
Command Input :
Handle to the job.
Name of the execution task you want to create.
Description of the execution task.
Flag indicating whether to use the predefined job's targets or its own targets.
The following example shows how to create an execution task associated with the job 'snapJob' in the job group '/snapshots' that should run against the predefined job's targets.
JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots snapJob` ET_NAME="et-snap" ET_DESCRIPTION="this execution task created by blcli" ET_KEY=`blcli ExecutionTask createExecutionTask $JOB_KEY "$ET_NAME" "$ET_DESCRIPTION" true`