Loading...

Setting the Total Running Time for Jobs

Select the Enable Total Running Time check box to set the total amount of time a job can run before it is terminated by the Job Manager. The total running time is the maximum elapsed time, in hours and minutes, from the time that the job is created. Some agents support committing backup jobs when the backup job is terminated. For information on committing a backup job when it is terminated, see Killing a Job in the Job Controller.

The following is the default behavior when Enable Total Running Time is selected:

  • If a job is running when the maximum elapsed time is reached, the job continues running.
  • If the job is not running when the maximum elapsed time is reached, the job is killed.

You can change the default behavior using the following options:

Setting the Total Running Time

The total running time is the maximum elapsed time, in hours and minutes, from the time that the job is created.

Procedure

All Jobs

  1. From the CommCell Console ribbon, click the Home tab, and then click Control Panel.
  2. Under the Data section, click Job Management.
  3. In the Job Management dialog box, click the Job Restarts tab, and select a job from the Job Type list.
  4. Select the Enable Total Running Time check box and specify the running time in hours and minutes.

    The default total running time is 6 hours.

  5. Click OK.

A Specific Job

For agents that support this capability, the individual setting will override the global setting configured through the Control Panel. The following example uses a backup job.

  1. From the Backup Options dialog box, click Advanced.
  2. In the Advanced Backup Options dialog box, click the Job Retry tab.
  3. Select the Enable Total Running Time check box and specify the running time in hours and minutes.

    The default total running time is 1 hour.

  4. Click OK.

Killing Running Jobs When the Total Running Time Expires

Select the Kill running jobs when total running time expires check box to change the default behavior of the Enable Total Running Time check box. Use the Kill running jobs when total running time expires check box to kill a running job when the maximum elapsed time is reached.

Procedure

All Jobs

  1. From the CommCell Console ribbon, click the Home tab, and then click Control Panel.
  2. Under the Data section, click Job Management.
  3. In the Job Management dialog box, click the Job Restarts tab, and select a job from the Job Type list.
  4. Select the Enable Total Running Time check box and specify the running time in hours and minutes.
  5. Select the Kill Running Job When Total Running Time Expires check box.
  6. Click OK.

A Specific Job

For agents that support this capability, the individual setting will override the global setting configured through the Control Panel. The following example uses a backup job.

  1. From the Backup Options dialog box, click Advanced.
  2. In the Advanced Backup Options dialog box, click the Job Retry tab.
  3. Select the Enable Total Running Time check box and specify the running time in hours and minutes.
  4. Select the Kill Running Jobs When Total Running Time Expires check box.
  5. Click OK.

Excluding the "Suspended" Time from the Total Running Time

Configure the JMExcludeUserSuspensionTime additional setting to change the default behavior of the Enable Total Running Time check box. Use the JMExcludeUserSuspensionTime additional setting to exclude the total time the job was in a suspended state from the total running time calculation. For instruction on setting the total running time, see Setting the Total Running Time.

Procedure

  1. From the CommCell Browser, navigate to CommServe.
  2. Right-click CommServe and then click Properties.
  3. In the CommCell Properties dialog box, click the Additional Settings tab and then click Add.

    The Add Additional Settings dialog box is displayed.

  4. In the Name field, type JMExcludeUserSuspensionTime.
  5. In the Category box, select CommServe.
  6. In the Type box, select BOOLEAN.
  7. In the Value box, select true.
  8. Click OK.

Checking for Data Transferred After the Total Running Time Expires

This additional setting applies to backup jobs. Use the JMMaximumAllowedTimeWithoutDataTransfer additional setting to run a backup job past the total running time if the backup job has transferred data within the last n minutes of the total running time. For instruction on setting the total running time, see Setting the Total Running Time.

Example

  • Total running time equals 2 hours
  • JMMaximumAllowedTimeWithoutDataTransfer equals 30 minutes

A backup job starts at 9 a.m. At 11 a.m. the backup job is not complete, so it has exceeded the total running time of 2 hours. The last 30 minutes of the total running time is checked: 10:30 a.m. to 11 a.m. If data was transferred between 10:30 a.m. to 11 a.m., the backup job continues to run. If no data was transferred, the backup job is killed.

Procedure

  1. From the CommCell Browser, navigate to CommServe.
  2. Right-click CommServe and then click Properties.
  3. In the CommCell Properties dialog box, click the Additional Settings tab and then click Add.

    The Add Additional Settings dialog box is displayed.

  4. In the Name field, type JMMaximumAllowedTimeWithoutDataTransfer.
  5. In the Category box, select CommServe.
  6. In the Type box, select INTEGER.
  7. In the Value box, type the number of minutes, for example, 45.
  8. Click OK.

Last modified: 10/13/2017 11:35:06 AM