Defining time-outs for jobs
By defining time-out 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 time-out 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 time-out values
Review the following considerations prior to working with time-out values:
- You define a time-out 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.
- You define a time-out 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 to complete. If completion of a job part exceeds this maximum, the system automatically cancels that job part along with all other job parts 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 time-outs, 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 time-out 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 time-out to be five minutes.
To define time-outs for a job
- Do one of the following:
- In the Jobs folder, navigate to a job, right-click the job and select Show Results.
- Using the Servers folder, right-click a server and select Browse. Then select the Audit Results or Snapshot Results tab to navigate to a Snapshot or Audit Job.
- Right-click the job and select Properties. The job appears in a tabbed window, in which you can view and edit the job properties.
- Click the Properties tab.
- Add time-out properties by doing any of the following:
To add a job-level time-out, 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 time-out, 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 close the job, click OK or Finish.