Defining timeouts for jobs
By defining timeout values for jobs or parts of jobs, you can avoid or resolve issues that occur if a job encounters an unresponsive or unlicensed server. If you do not use this procedure to specify a timeout for a job or job part, a slow-running job can absorb Application Server resources for an extended amount of time, and you may be unable to determine whether a job is hung.
Considerations for setting timeout values
Review the following considerations prior to working with timeout values:
- You define a timeout period for a job by assigning a value to a job's JOB_TIMEOUT property that specifies a maximum period of time, in minutes, for the job to complete. If the job exceeds this maximum, the system automatically cancels the job.
- NEW IN 21.02(For advanced deploy jobs) You can configure the DEPLOY_JOB_STAGING_TIMEOUT property for the staging phase of a job to configure the time in minutes for which the staging phase should run before the job is canceled. By default, value of this property is equal to the value of the JOB_TIMEOUT property. If the payloads to be copied need additional time due to their size, you can configure a higher value for the DEPLOY_JOB_STAGING_TIMEOUT property.
- You define a timeout period for a job part by assigning a value to a job's JOB_PART_TIMEOUT property that specifies a maximum period of time, in minutes, for each job part in the job to complete. If completion of a job part exceeds this maximum, the system automatically cancels that job part along with all other job parts in the same job that are running on the same server. The rest of the job continues.
- Canceling all job parts on the same server prevents situations where multiple job parts must time out serially on the same unresponsive server. If necessary, you can override this capability on a global basis so only a single job part times out while all other job parts continue to execute. You can also set a value for how long the canceling of a job part should take.
- To determine an appropriate value for job-level and job part timeouts, you must consider many factors, such as the load on a machine and the contents of each job part. You may want to test by performing multiple iterations on a job to determine appropriate timeout values. For example, if you perform some tests and determine that the processing of a job part never requires more than two minutes, you might set the job part timeout to be five minutes.
To define timeouts for a job
- Log in to the TrueSight Server Automation console.
- Navigate to a job under the Jobs folder and select the job.
- In the Properties view, expand the Extended node to display the list of the job's extended properties.
- Define timeout properties by doing any of the following:
To add a job-level timeout, click the cell in the Value column for the JOB_TIMEOUT property. Enter a maximum period of time (in minutes) to elapse before the job is automatically canceled.
To add a job part timeout, click the cell in the Value column for the JOB_PART_TIMEOUT property. Enter a maximum period of time (in minutes) that should elapse before a job part is canceled.
To define timeouts for a job globally
- Select Configuration > Property Dictionary View to open the Property Dictionary.
- Select Built-in Property Classes > Job.
- Navigate to a job and select the job. This displays that job's properties in the Properties view or display the Properties panel in a wizard.
- In the properties list, click in the Value column for JOB_TIMEOUT or JOB_PART_TIMEOUT properties. For more information, see Setting-values-for-system-object-properties.
- Click OK.