REST API to query events
- Get the list of jobs with status (filter on start/end time):
- human table: workflow label, status (running/succeeded/failed -> color), duration, error traceback
- Get all events of a job id: for the numbers on the canvas
REST API:
GET /execution/events ?starttime=...&endtime=...&status=...&workflow_id=...&job_id=...&context=...
Any ewoks event field can be used to filter: https://ewokscore.readthedocs.io/en/latest/events.html
Example 1: GET /execution/events ?starttime=2022/05/10&endtime=2022/05/10&context=job
Result 1:
[[{"job_id": "1", "type"="start", ...}, {"job_id": "1", "type"="end", ...}],
[{"job_id": "2", "type"="start", ...}, {"job_id": "2", "type"="end", ...}],
[{"job_id": "3", "type"="start", ...}]]
Example 2: GET /execution/events ?job_id="2"
Result 2:
[
[{"job_id": "2", "type"="start", ...}, {"job_id": "2", ...}, ... {"job_id": "2", "type"="end", ...}],
]
Edited by Wout De Nolf