Sun N1 Grid Engine 6.1 Administration 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 9–1 Job-Related Error or Exit Codes

Script/Method 

Exit or Error Code 

Consequence 

Job script 

0 

Success 

 

99 

Requeue 

 

Rest 

Success: exit code in accounting file 

 

 

 

prolog/epilog 

0 

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 9–2 Parallel-Environment-Related Error or Exit Codes

Script/Method 

Exit or Error Code 

Consequence 

pe_start 

0 

Success 

 

Rest 

Queue set to error state, job requeued 

 

 

 

pe_stop 

0 

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 9–3 Queue-Related Error or Exit Codes

Script/Method 

Exit or Error Code 

Consequence 

Job starter 

0 

Success 

 

Rest 

Success, no other special meaning 

 

 

 

Suspend 

0 

Success 

 

Rest 

Success, no other special meaning 

 

 

 

Resume 

0 

Success 

 

Rest 

Success, no other special meaning 

 

 

 

Terminate 

0 

Success 

 

Rest 

Success, no other special meaning 

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

Table 9–4 Checkpointing-Related Error or Exit Codes

Script/Method 

Exit or Error Code 

Consequence 

Checkpoint 

0 

Success 

 

Rest 

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

 

 

 

Migrate 

0 

Success 

 

Rest 

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

 

 

 

Restart 

0 

Success 

 

Rest 

Success, no other special meaning 

 

 

 

Clean 

0 

Success 

 

Rest 

Success, no other special meaning