reformat code and job array
This commit is contained in:
parent
a665ccd4fe
commit
9ff857db9f
64 changed files with 1497 additions and 2476 deletions
|
|
@ -170,16 +170,12 @@ typedef struct {
|
|||
#define XCE_WORKER_BUSY (0x00080000)
|
||||
#define XCE_WORKER_CLOSED (0x00100000)
|
||||
|
||||
#define IS_WORKER_UNAVAIL(status) \
|
||||
(((status) & XCE_WORKER_UNAVAIL) != 0)
|
||||
#define IS_WORKER_LOCKEDU(status) \
|
||||
(((status) & XCE_WORKER_LOCKEDU) != 0)
|
||||
#define IS_WORKER_LOCKEDW(status) \
|
||||
(((status) & XCE_WORKER_LOCKEDW) != 0)
|
||||
#define IS_WORKER_LOCKED(status) \
|
||||
#define IS_WORKER_UNAVAIL(status) (((status) & XCE_WORKER_UNAVAIL) != 0)
|
||||
#define IS_WORKER_LOCKEDU(status) (((status) & XCE_WORKER_LOCKEDU) != 0)
|
||||
#define IS_WORKER_LOCKEDW(status) (((status) & XCE_WORKER_LOCKEDW) != 0)
|
||||
#define IS_WORKER_LOCKED(status) \
|
||||
(IS_WORKER_LOCKEDU(status) || IS_WORKER_LOCKEDW(status))
|
||||
#define IS_WORKER_BUSY(status) \
|
||||
(((status) & XCE_WORKER_BUSY) != 0)
|
||||
#define IS_WORKER_BUSY(status) (((status) & XCE_WORKER_BUSY) != 0)
|
||||
|
||||
typedef struct {
|
||||
char* hosttype;
|
||||
|
|
@ -303,25 +299,29 @@ typedef struct {
|
|||
int exitcode;
|
||||
} job_exitinfo_t;
|
||||
|
||||
#define JOB_STAT_NULL 0x00 /**< NULL. */
|
||||
#define JOB_STAT_PEND 0x01 /**< Job is submitted. */
|
||||
#define JOB_STAT_RUN 0x02 /**< Job is running. */
|
||||
#define JOB_STAT_EXIT 0x04 /**< Job is exit. */
|
||||
#define JOB_STAT_DONE 0x08 /**< Job is done. */
|
||||
#define JOB_STAT_PSUSP 0x10 /**< Job is pending and suspend*/
|
||||
#define JOB_STAT_USUSP 0x20 /**< Job is user suspend*/
|
||||
#define JOB_STAT_SSUSP 0x40 /**< Job is system suspend*/
|
||||
#define JOB_STAT_NULL 0x00 /**< NULL. */
|
||||
#define JOB_STAT_PEND 0x01 /**< Job is submitted. */
|
||||
#define JOB_STAT_RUN 0x02 /**< Job is running. */
|
||||
#define JOB_STAT_EXIT 0x04 /**< Job is exit. */
|
||||
#define JOB_STAT_DONE 0x08 /**< Job is done. */
|
||||
#define JOB_STAT_PSUSP 0x10 /**< Job is pending and suspend*/
|
||||
#define JOB_STAT_USUSP 0x20 /**< Job is user suspend*/
|
||||
#define JOB_STAT_SSUSP 0x40 /**< Job is system suspend*/
|
||||
|
||||
#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 worker on the host on which the \
|
||||
* job is processed has lost contact with controller */
|
||||
#define JOB_STAT_PROV (0x20000) /**< this state shows that the job is dispatched to a standby \
|
||||
* power saved host, and this host is \
|
||||
* being waken up or started up */
|
||||
#define JOB_STAT_ERR (0x40000) /**ERROR */
|
||||
#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 worker on the host on which the \
|
||||
* job is processed has lost contact with controller */
|
||||
#define JOB_STAT_PROV \
|
||||
(0x20000) /**< this state shows that the job is dispatched to a standby \
|
||||
* power saved host, and this host is \
|
||||
* being waken up or started up */
|
||||
#define JOB_STAT_ERR (0x40000) /**ERROR */
|
||||
|
||||
#define JOB_EXEC_STAGE_Q_PRE_EXEC (0)
|
||||
#define JOB_EXEC_STAGE_PRE_EXEC (1)
|
||||
|
|
@ -329,13 +329,15 @@ typedef struct {
|
|||
#define JOB_EXEC_STAGE_POST_EXEC (3)
|
||||
#define JOB_EXEC_STAGE_Q_POST_EXEC (4)
|
||||
|
||||
#define QUEUE_STAT_OPEN 0x00 /**< OPEN. */
|
||||
#define QUEUE_STAT_CLOSED 0x01 /**< The queue is closed */
|
||||
#define QUEUE_STAT_INACT_WINDOW 0x02 /**< The queue inactivated due to dispatch or run windows closed */
|
||||
#define QUEUE_STAT_INACT_ADMIN 0x04 /**< The queue inactivated by admin */
|
||||
#define QUEUE_STAT_NOPERM 0x08 /**< Remote queue rejecting jobs. */
|
||||
#define QUEUE_STAT_DISC 0x10 /**< Remote queue status is disconnected. */
|
||||
#define QUEUE_STAT_FAIRSHARE_DEFAULT 0x20 /**< Fairshare queue with null user share defined*/
|
||||
#define QUEUE_STAT_OPEN 0x00 /**< OPEN. */
|
||||
#define QUEUE_STAT_CLOSED 0x01 /**< The queue is closed */
|
||||
#define QUEUE_STAT_INACT_WINDOW \
|
||||
0x02 /**< The queue inactivated due to dispatch or run windows closed */
|
||||
#define QUEUE_STAT_INACT_ADMIN 0x04 /**< The queue inactivated by admin */
|
||||
#define QUEUE_STAT_NOPERM 0x08 /**< Remote queue rejecting jobs. */
|
||||
#define QUEUE_STAT_DISC 0x10 /**< Remote queue status is disconnected. */
|
||||
#define QUEUE_STAT_FAIRSHARE_DEFAULT \
|
||||
0x20 /**< Fairshare queue with null user share defined*/
|
||||
|
||||
typedef enum {
|
||||
NORMAL = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue