forked from lei.chen/myxce
job submit and support run in worker
This commit is contained in:
parent
3630e38a07
commit
e497dd1b69
18 changed files with 502 additions and 236 deletions
|
|
@ -231,46 +231,30 @@ struct JobStartInfo $C.mapname("job_startinfo_t"){
|
|||
}
|
||||
|
||||
struct Job $C.mapname("xce_job_t"){
|
||||
jobid @0: UInt64;
|
||||
queue @1: Text;
|
||||
user @2: Text;
|
||||
idx @3: UInt64;
|
||||
subtime @4: UInt64 $C.mapname("sub_time");
|
||||
queuetime @5: UInt64 $C.mapname("queue_time");
|
||||
starttime @6: UInt64 $C.mapname("start_time");
|
||||
finishtime @7: UInt64 $C.mapname("finish_time");
|
||||
state @8: UInt32;
|
||||
jobname @9: Text $C.mapname("job_name");
|
||||
projectname @10: Text $C.mapname("project_name");
|
||||
usergroup @11: Text $C.mapname("user_group");
|
||||
desc @12: Text $C.mapname("job_description");
|
||||
resreq @13: Text;
|
||||
allocs @14: JobAlloc $C.mapname("allocs");
|
||||
runtime @15: UInt32 $C.mapname("run_time");
|
||||
pidinfo @16: JobPIDInfo;
|
||||
startinfo @17: JobStartInfo $C.mapname("start_info");
|
||||
mintasks @18: UInt32 $C.mapname("mintasks");
|
||||
maxtasks @19: UInt32 $C.mapname("maxtasks");
|
||||
jobid @0: UInt64;
|
||||
submitData @1: JobSubmitData $C.mapname("submit");
|
||||
idx @2: UInt64;
|
||||
subtime @3: UInt64 $C.mapname("sub_time");
|
||||
queuetime @4: UInt64 $C.mapname("queue_time");
|
||||
starttime @5: UInt64 $C.mapname("start_time");
|
||||
finishtime @6: UInt64 $C.mapname("finish_time");
|
||||
state @7: UInt32;
|
||||
allocs @8: JobAlloc $C.mapname("allocs");
|
||||
runtime @9: UInt32 $C.mapname("run_time");
|
||||
pidinfo @10: JobPIDInfo;
|
||||
}
|
||||
|
||||
struct SchedJob $C.mapname("xce_job_t"){
|
||||
jobid @0: UInt64;
|
||||
queue @1: Text;
|
||||
user @2: Text;
|
||||
idx @3: UInt64;
|
||||
subtime @4: UInt64 $C.mapname("sub_time");
|
||||
queuetime @5: UInt64 $C.mapname("queue_time");
|
||||
starttime @6: UInt64 $C.mapname("start_time");
|
||||
finishtime @7: UInt64 $C.mapname("finish_time");
|
||||
state @8: UInt32;
|
||||
jobname @9: Text $C.mapname("job_name");
|
||||
projectname @10: Text $C.mapname("project_name");
|
||||
usergroup @11: Text $C.mapname("user_group");
|
||||
resreq @12: Text;
|
||||
allocs @13: JobAlloc $C.mapname("allocs");
|
||||
runtime @14: UInt32 $C.mapname("run_time");
|
||||
mintasks @15: UInt32 $C.mapname("mintasks");
|
||||
maxtasks @16: UInt32 $C.mapname("maxtasks");
|
||||
jobid @0: UInt64;
|
||||
submitData @1: JobSubmitData $C.mapname("submit");
|
||||
idx @2: UInt64;
|
||||
subtime @3: UInt64 $C.mapname("sub_time");
|
||||
queuetime @4: UInt64 $C.mapname("queue_time");
|
||||
starttime @5: UInt64 $C.mapname("start_time");
|
||||
finishtime @6: UInt64 $C.mapname("finish_time");
|
||||
state @7: UInt32;
|
||||
allocs @8: JobAlloc $C.mapname("allocs");
|
||||
runtime @9: UInt32 $C.mapname("run_time");
|
||||
}
|
||||
|
||||
struct JobData $C.mapname("xce_jobs_data_t") {
|
||||
|
|
@ -448,14 +432,23 @@ struct ClusterConf $C.mapname("xce_clusterconf_t") {
|
|||
workers @3: List(Worker) $C.mapname("wlist.workers") $C.maplistcount("wlist.count");
|
||||
}
|
||||
|
||||
struct JobSubmitData $C.mapname("job_submit_data_t") {
|
||||
queue @0: Text;
|
||||
user @1: Text;
|
||||
mintasks @2: UInt32;
|
||||
maxtasks @3: UInt32;
|
||||
jobname @4: Text $C.mapname("job_name");
|
||||
project @5: Text $C.mapname("project_name");
|
||||
ugroup @6: Text $C.mapname("user_group");
|
||||
description @7: Text $C.mapname("job_description");
|
||||
resreq @8: Text;
|
||||
startinfo @9: JobStartInfo $C.mapname("start_info");
|
||||
}
|
||||
|
||||
struct JobSubmit $C.mapname("xce_job_submit_t") {
|
||||
queue @0: Text;
|
||||
user @1: Text;
|
||||
cmdline @2: Text;
|
||||
resreq @3: Text;
|
||||
exdata @4: Text;
|
||||
mintasks @5: UInt32;
|
||||
maxtasks @6: UInt32;
|
||||
jobid @0: UInt64;
|
||||
arraySize @1: UInt64 $C.mapname("array_size");
|
||||
submit @2: JobSubmitData;
|
||||
}
|
||||
|
||||
struct JobSignal $C.mapname("xce_signal_t") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue