Oms API GET any queue job state - openmpp/openmpp.github.io GitHub Wiki

GET any queue job state.

This method returns queue model run JSON file content from job/queue/ folder, searching it by user oms instance name and submission time stamp.

It is available only if oms started with "global admin" privileges, for example:

oms -l localhost:4040 -oms.JobDir job -oms.AdminAll

Method:

GET /api/admin-all/job/queue/user/:user/stamp/:stamp/state

Arguments:

:user - (required) `oms` instance name, e.g.: `bob_4044`
:stamp - (required) model run submission time stamp, e.g.: `2026_01_29_16_03_06_050`

Call examples:

http://localhost:4040/api/admin-all/job/queue/user/bob_4044/stamp/2026_01_29_16_03_06_050/state

Example:

{
  "SubmitStamp": "2026_01_29_16_03_06_050",
  "Pid": 0,
  "CmdPath": "",
  "CmdLine": "",
  "ModelName": "RiskPaths",
  "ModelDigest": "43976e100f44b6c4e2968fc74442a745",
  "RunStamp": "",
  "Dir": "",
  "Opts": {
    "OpenM.BaseRunDigest": "88db6fbc163717678dd3f043a5573909",
    "OpenM.LogRank": "true",
    "OpenM.MessageLanguage": "en-CA",
    "OpenM.NotOnRoot": "true",
    "OpenM.RunName": "RiskPaths_Many cases_2026_01_29_16_02_54_326",
    "OpenM.SetName": "Many cases",
    "OpenM.SubValues": "2",
    "OpenM.Threads": "2"
  },
  "Env": {},
  "Threads": 2,
  "IsMpi": true,
  "Mpi": {
    "Np": 2,
    "IsNotOnRoot": true,
    "IsNotByJob": false
  },
  "Template": "mpi.RiskPaths.template.txt",
  "Tables": [],
  "Microdata": {
    "IsToDb": false,
    "IsInternal": false,
    "Entity": []
  },
  "RunNotes": [],
  "Res": {
    "Cpu": 2,
    "Mem": 0,
    "ProcessCount": 1,
    "ThreadCount": 2,
    "ProcessMemMb": 0,
    "ThreadMemMb": 0
  },
  "IsOverLimit": false,
  "QueuePos": 0,
  "LogFileName": "",
  "LogPath": "",
  "BinDir": "",
  "WorkDir": "",
  "IniPath": "",
  "HostFilePath": ""
}
⚠️ **GitHub.com Fallback** ⚠️