DIRACGrid/diracx

Add routes for JobStateUpdateHandler

Closed this issue · 2 comments

Add routes for JobStateUpdateHandler
PATCH jobs/metadata

{
    "123456": {
        "field1": "value1",
        "field2": "value2"
    },
}

PATCH jobs/status

{
    "123456": [
        {
            "status": "running",
            "timestamp": "2019-01-01T00:00:00Z",
        },
        {
            "status": "completed",
            "timestamp": "2019-01-01T00:01:00Z",
            "application_status": "app1",
        },
    ],
}

POST jobs/search

[
    [
        "JobId": "123456",
        "StatusHistory": [
            {
                "Timestamp": "2019-01-01T00:01:00Z",
                "Status": "Completed",
                "ApplicationStatus": "XXX",
            }
        ]
    ]
]