为了扩展,感谢@Squirrel,我们C:\LSF_7.0\7.0\include\lsf\lsbatch.h
文件的相关内容是:
/** * \addtogroup job_states job_states * define job states */ /*@{*/
#define JOB_STAT_NULL 0x00 /**< State null*/
#define JOB_STAT_PEND 0x01 /**< The job is pending, i.e., it
* has not been dispatched yet.*/
#define JOB_STAT_PSUSP 0x02 /**< The pending job was suspended by its
* owner or the LSF system administrator.*/
#define JOB_STAT_RUN 0x04 /**< The job is running.*/
#define JOB_STAT_SSUSP 0x08 /**< The running job was suspended
* by the system because an execution
* host was overloaded or the queue run
* window closed. (see \ref lsb_queueinfo,
* \ref lsb_hostinfo, and lsb.queues.)
*/
#define JOB_STAT_USUSP 0x10 /**< The running job was suspended by its
* owner or the LSF system administrator.*/
#define JOB_STAT_EXIT 0x20 /**< The job has terminated with a non-zero
* status - it may have been aborted due
* to an error in its execution, or
* killed by its owner or by the
* LSF system administrator.*/
#define JOB_STAT_DONE 0x40 /**< The job has terminated with status 0.*/
#define JOB_STAT_PDONE (0x80) /**< Post job process done successfully */
#define JOB_STAT_PERR (0x100) /**< Post job process has error */
#define JOB_STAT_WAIT (0x200) /**< Chunk job waiting its turn to exec */
#define JOB_STAT_RUNKWN 0x8000 /* Flag : Job status is UNKWN caused by
* losting contact with remote cluster */
#define JOB_STAT_UNKWN 0x10000 /**< The slave batch daemon (sbatchd) on
* the host on which the job is processed
* has lost contact with the master batch
* daemon (mbatchd).*/
再次以十进制表示:
0 JOB_STAT_NULL
1 JOB_STAT_PEND
2 JOB_STAT_PSUSP
4 JOB_STAT_RUN
8 JOB_STAT_SSUSP
16 JOB_STAT_USUSP
32 JOB_STAT_EXIT
64 JOB_STAT_DONE
128 JOB_STAT_PDONE
256 JOB_STAT_PERR
512 JOB_STAT_WAIT
32768 JOB_STAT_RUNKWN
65536 JOB_STAT_UNKWN