This commit is contained in:
Rongsong Shen 2026-02-09 18:11:27 +08:00
parent 12a6010f29
commit e7ab1c16db
5 changed files with 188 additions and 91 deletions

View file

@ -28,10 +28,28 @@ typedef struct {
} request_res_t;
typedef struct {
char* user;
char* queue;
char* project;
xce_resreq_t* resreq;
char* user;
char* queue;
char* project;
xce_primary_resreq_t* resreq;
} xce_primary_schedobj_t;
typedef struct {
char* user;
char* queue;
char* project;
xce_compound_resreq_t* resreq;
} xce_compound_schedobj_t;
typedef struct {
xce_resreq_tag_t tag;
union {
xce_primary_schedobj_t* primary;
xce_compound_schedobj_t* compound;
xlist_t alters;
} u;
xce_job_alloc_t* alloc;
xce_pendreason_t* reason;
} xce_sched_obj_t;
typedef struct {
@ -62,6 +80,7 @@ typedef struct {
xce_sched_queue_t* queue;
xce_sched_user_t* user;
xce_sched_project_t* project;
xce_resreq_t* resreq;
xce_sched_obj_t* schedobj;
uint32_t mintasks;
uint32_t maxtasks;
@ -81,9 +100,7 @@ typedef struct {
xce_sched_job_t* job;
xce_sched_worker_t* worker;
xce_sched_obj_t* schedobj;
xce_resreq_t* resreq;
xce_job_alloc_t* alloc;
xce_pendreason_t* reason;
struct {
xvec_t* shared;
zarray_t hosts;