Job Execution Task Properties

Property Pages

Job Execution

The Job Execution page defines which jobs the task will run and contains options controlling the execution.

Target Jobs

The Target Jobs list is the list of jobs that the task will run. The Job Execution Task Target Properties is used to edit the settings for each target job.

If there is more than one target job, they will be submitted for execution in the order they are listed; use the up and down arrows to change the order of the jobs. Note:

Wait For and Success Criteria

The Wait For and Success Criteria options determine how the task executes jobs and how adTempus determines if the step should be treated as successful or failed.

If multiple instances are started for a target job (see Multiple Instances), the target waits for all instances, and all instances must succeed for the target to be considered successful.

The following table shows the available settings and how they interact.

  Success Criteria    
Wait For All targets must succeed At least one target must succeed Ignore target result
Do not wait

All target jobs are submitted for execution at the same time.

The task ends without waiting for any of them to complete.

The success criteria are ignored and the step is always successful.

Any job to complete

All target jobs are submitted for execution at the same time.

The task waits until any one of the jobs completes.

The success or failure of the step is based on the result of the completed job.

All target jobs are submitted for execution at the same time.

The task waits until any one of the jobs completes.

Any failures are ignored and the step is always successful.

Any job to succeed

All target jobs are submitted for execution at the same time.

The task waits until any one of the jobs completes with a successful result.

The step is successful if at least one target job succeeds, otherwise it fails.

All jobs to complete

All target jobs are submitted for execution at the same time.

The task waits until all of the jobs complete.

The step is successful if all of the target jobs are successful, otherwise it fails.

All target jobs are submitted for execution at the same time.

The task waits until all of the jobs complete.

The step is successful if at least one of the target jobs is successful, otherwise it fails.

All target jobs are submitted for execution at the same time.

The task waits until all of the jobs complete.

Any failures are ignored and the step is always successful.

Each job (stop on failure)

The target jobs are executed one at a time in the order listed.

The task waits until each job completes before submitting the next job. If a target job fails, the step does not execute the remaining jobs.

The step is successful if all of the target jobs it has executed are successful, otherwise it fails.

The target jobs are executed one at a time in the order listed.

The task waits until each job completes before submitting the next job. If a target job fails, the step does not execute the remaining jobs.

The step is successful if any of the target jobs it has executed are successful, otherwise it fails.

The target jobs are executed one at a time in the order listed.

The task waits until each job completes before submitting the next job. If a target job fails, the step does not execute the remaining jobs.

Any failures are ignored and the step is always successful.

Each job (run all targets)

The target jobs are executed one at a time in the order listed.

The task waits until each job completes before submitting the next job. If a target job fails, the step continues executing the remaining jobs.

The step is successful if all of the target jobs it has executed are successful, otherwise it fails.

The target jobs are executed one at a time in the order listed.

The task waits until each job completes before submitting the next job. If a target job fails, the step continues executing the remaining jobs.

The step is successful if any of the target jobs it has executed are successful, otherwise it fails.

The target jobs are executed one at a time in the order listed.

The task waits until each job completes before submitting the next job. If a target job fails, the step continues executing the remaining jobs.

Any failures are ignored and the step is always successful.

Maximum time to wait for job execution

This limit specifies the maximum time the task should wait for target jobs to execute. Once this time limit is exceeded, adTempus will log a warning message and then determine the success or failure of the step by applying the Success Criteria:

Maximum time to wait for job dispatch

This limit specifies the maximum time the task should wait for target jobs to be dispatched to a Controller or remote server for execution (see Remote Job Execution). If a target job cannot be sent to the other server within the time limit (i.e., because the remote server cannot be contacted), adTempus will log a warning message and that target will be treated as failed. The Wait For and Success Criteria will be applied as normal, treating the timed-out target as failed.

Note: This wait limit is not enforced while there are any other target jobs that are executing: as long as at least one target job has been successfully submitted and is still executing, adTempus will continue to wait for remote jobs to be dispatched. However, the wait time is calculated from the time the target job was sent for dispatch.

Responses

Choose which Responses you want to execute (this option applies to Responses for the job and for steps within the job):

Ignore conditions for the job

If this option is checked, adTempus will ignore any conditions that are defined for the target job (this forces the job to execute even if the conditions are not met). Conditions at the step level are not ignored (see next option).

Ignore conditions for individual steps

If this option is checked, adTempus will ignore any conditions that are defined for the target step, or for the steps of the target job (this forces the step(s) to execute even if the conditions are not met).

Force a new instance of the job if necessary

This option overrides the Multiple Instances option for the target job, forcing adTempus to start a new instance of the job even if another instance is already running.

Run only on same Agent

This option is only available if the current server is a Distributed Scheduling Controller computer. If this option is checked, the target job will be run only on the same computer as the calling job. If this option is not checked, the job will execute according to the Distributed Scheduling settings for its Queue, and may not execute on the same computer as the calling job.

Run only on Controller

This option is only available if the current server is a Distributed Scheduling Controller computer. If this option is checked, the target job will be run only on the Controller computer; any Agents associated with the job's Queue will be ignored. If the Queue is not configured to run jobs on the Controller, the job will not run unless the Force job to run on Controller option is also checked.

Force job to run on Controller

This option is only available if the current server is a Distributed Scheduling Controller computer. If this option is checked, the target job will run on the Controller computer even if the Queue is not configured to run jobs on the Controller.

Job Variable Propagation

The Job Variables listed on the Variables page for the task are the variables inherited by or defined in the job/step that you are editing (the calling job). They do not reflect the variables defined for the target job(s). To see the variables defined for a target or to define different variable for different targets, edit the target and review the Variables page of the target properties.

The following rules determine whether the variables listed for the step are sent to the target job:

When the Job Execution Task sends variables to the target job, those variables override the values defined in the target job. For example, suppose the target job has a "Customer ID" variable set to "14". The calling job also has a "Customer ID" variable with the value "97". If you check the Override Target box for this variable, the target job will use the value "97".

Related Concepts

Job Execution Task

Related Topics

How To: Link Jobs Together