Oms API GET job queue state - openmpp/openmpp.github.io GitHub Wiki
GET state of model run job from queue.
This method allow get model run job request from the queue, results include:
- model run request options, for example: run name, number of sub-values (sub-samples);
This is a beta version and may change in the future.
Method:
GET /api/service/job/queue/:job
Arguments:
:job - (required) model run submission time stamp
Call examples:
http://localhost:4040/api/service/job/queue/2022_09_13_21_28_38_409
Example:
{
"JobStatus": "",
"SubmitStamp": "2022_09_13_21_28_38_409",
"Pid": 0,
"CmdPath": "",
"ModelName": "RiskPaths",
"ModelDigest": "d90e1e9a49a06d972ecf1d50e684c62b",
"RunStamp": "",
"Dir": "",
"Opts": {
"EN.RunDescription": "Run desription in English",
"FR.RunDescription": "Run desription in French",
"OpenM.BaseRunDigest": "66646f985fecfb1d59fd5ff81ee3b78a",
"OpenM.LogRank": "true",
"OpenM.MessageLanguage": "en-CA",
"OpenM.NotOnRoot": "true",
"OpenM.RunName": "RiskPaths New 4 sub-values",
"OpenM.SetName": "New_2022",
"OpenM.SubValues": "4",
"OpenM.Threads": "2"
},
"Env": {},
"Threads": 2,
"IsMpi": true,
"Mpi": {
"Np": 2,
"IsNotOnRoot": true,
"IsNotByJob": true
},
"Template": "mpi.ModelRun.template.txt",
"Tables": [
"T02_TotalPopulationByYear",
"TG03_Union_Tables",
"TG02_Birth_Tables"
],
"RunNotes": [
{
"LangCode": "EN",
"Note": "Run notes (English)"
},
{
"LangCode": "FR",
"Note": "Run notes (French)"
}
],
"Res": {
"Cpu": 2,
"Mem": 0
},
"IsOverLimit": false,
"QueuePos": 0,
"LogFileName": "",
"LogPath": "",
"RunStatus": [],
"Lines": []
}
Example: empty response if model run job not found on server
{
"JobStatus": "",
"SubmitStamp": "2022_09_12_21_18_36_413",
"Pid": 0,
"CmdPath": "",
"ModelName": "",
"ModelDigest": "",
"RunStamp": "",
"Dir": "",
"Opts": {},
"Env": {},
"Threads": 0,
"IsMpi": false,
"Mpi": {
"Np": 0,
"IsNotOnRoot": false,
"IsNotByJob": false
},
"Template": "",
"Tables": [],
"RunNotes": [],
"Res": {
"Cpu": 0,
"Mem": 0
},
"IsOverLimit": false,
"QueuePos": 0,
"LogFileName": "",
"LogPath": "",
"RunStatus": [],
"Lines": []
}