Sun N1 Grid Engine 6.1 User's Guide

Consequences of Different Error or Exit Codes

The following table lists the consequences of different job-related error codes or exit codes. These codes are valid for every type of job.

Table 7–1 Job-Related Error or Exit Codes

Script/Method 

Exit or Error Code 

Consequence 

Job script 

Success 

 

99 

Requeue 

 

Rest 

Success: exit code in accounting file 

prolog/epilog 

Success 

 

99 

Requeue 

 

Rest 

Queue error state, job requeued 

The following table lists the consequences of error codes or exit codes of jobs related to parallel environment (PE) configuration.

Table 7–2 Parallel-Environment-Related Error or Exit Codes

Script/Method 

Exit or Error Code 

Consequence 

pe_start 

Success 

 

Rest 

Queue set to error state, job requeued 

pe_stop 

Success 

 

Rest 

Queue set to error state, job not requeued 

The following table lists the consequences of error codes or exit codes of jobs related to queue configuration. These codes are valid only if corresponding methods were overwritten.

Table 7–3 Queue-Related Error or Exit Codes

Script/Method 

Exit or Error Code 

Consequence 

Job starter 

Success 

 

Rest 

Success, no other special meaning 

Suspend 

Success 

 

Rest 

Success, no other special meaning 

Resume 

Success 

 

Rest 

Success, no other special meaning 

Terminate 

Success 

 

Rest 

Success, no other special meaning 

The following table lists the consequences of error or exit codes of jobs related to checkpointing.

Table 7–4 Checkpointing-Related Error or Exit Codes

Script/Method 

Exit or Error Code 

Consequence 

Checkpoint 

Success 

 

Rest 

Success. For kernel checkpoint, however, this means that the checkpoint was not successful. 

Migrate 

Success 

 

Rest 

Success. For kernel checkpoint, however, this means that the checkpoint was not successful. Migration will occur. 

Restart 

Success 

 

Rest 

Success, no other special meaning 

Clean 

Success 

 

Rest 

Success, no other special meaning 

For jobs that run successfully, the qacct -j command output shows a value of 0 in the failed field, and the output shows the exit status of the job in the exit_status field. However, the shepherd might not be able to run a job successfully. For example, the epilog script might fail, or the shepherd might not be able to start the job. In such cases, the failed field displays one of the code values listed in the following table.

Table 7–5 qacct -j failed Field Codes

Code 

Description 

acctvalid 

Meaning for Job 

No failure 

Job ran, exited normally 

Presumably before job 

Job could not be started 

Before writing config 

Job could not be started 

Before writing PID 

Job could not be started 

On reading config file 

Job could not be started 

Setting processor set 

Job could not be started 

Before prolog 

Job could not be started 

In prolog 

Job could not be started 

Before pestart 

Job could not be started 

10 

In pestart 

Job could not be started 

11 

Before job 

Job could not be started 

12 

Before pestop 

Job ran, failed before calling PE stop procedure 

13 

In pestop 

Job ran, PE stop procedure failed 

14 

Before epilog 

Job ran, failed before calling epilog script 

15 

In epilog 

Job ran, failed in epilog script 

16 

Releasing processor set 

Job ran, processor set could not be released 

24 

Migrating (checkpointing jobs) 

Job ran, job will be migrated 

25 

Rescheduling 

Job ran, job will be rescheduled 

26 

Opening output file 

Job could not be started, stderr/stdout file could not be opened 

27 

Searching requested shell 

Job could not be started, shell not found 

28 

Changing to working directory 

Job could not be started, error changing to start directory 

100 

Assumedly after job 

Job ran, job killed by a signal 

The Code column lists the value of the failed field. The Description column lists the text that appears in the qacct -j output. If acctvalid is set to t, the job accounting values are valid. If acctvalid is set to f, the resource usage values of the accounting record are not valid. The Meaning for Job column indicates whether the job ran or not.