Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Overview


4.5.12 Changing the status of a job

You can change the status of a job or jobnet connector.

Jobs that are queued, are running, or have ended can be changed to another status. For queueless jobs, you can change the status even when the jobs are waiting for execution. For event jobs and OR jobs, you cannot use a threshold to change the status. For judgment jobs, you cannot change the status.

For a jobnet connector, you can change any status, other than Not scheduled to execute or Wait for previous to end, to Ended normally, Ended with warning, or Ended abnormally.

You can use this operation when you want to rerun a job manually, or to correct a discrepancy between the actual status and the status determined by JP1/AJS3 from the execution results in a job-specific log, so that JP1/AJS3 reports the correct status.

When you change the status of a job or jobnet connector, the status of the upper-level jobnet also changes.

When you change the status of a currently running job to ended, the job continues running, but the system also starts executing succeeding units in line with the new job status. In such cases, until the currently running job actually ends, the agent management control will count the job toward the maximum number of jobs that can be executed concurrently.

After changing the status of a job, you can use the ajsagtshow and the jpqagtshow commands to check the actual number of jobs in the queue and the number of jobs currently running. For details about these commands, see ajsagtshow in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference, and see jpqagtshow in 4. Commands Used for Special Operation in the manual JP1/Automatic Job Management System 3 Command Reference.

If you change the status of an event job from Now running to the Ended status, execution of the succeeding job or jobnet starts just as if the event job had terminated normally. In this case, the information to be passed from the event job to the succeeding job or jobnet is not set even when the event job terminates normally. The monitoring of the event job terminates when the status is changed.

To this operation, you can use JP1/AJS3 - View, the Web GUI, the API function to change job status, or the ajschgstat command. For details on using JP1/AJS3 - View, see 9.12 Changing the status of jobs in the JP1/Automatic Job Management System 3 Operator's Guide. For details on using Web GUI, see 16.11 Change Job Status dialog box in the JP1/Automatic Job Management System 3 Operator's Guide. For details on using the change job status API, see 7.1.11 Change job status API in the manual JP1/Automatic Job Management System 3 Command Reference. Alternatively, for details on the ajschgstat command, see the description of ajschgstat in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.