Monitor task status
As a debusine user, I can monitor the status of a task that I scheduled with the debusine
command line interface and the task identifier that I got back when I scheduled the task.
$ debusine task_status 123456
status: waiting
[...]
$ debusine task_status 123456
status: running
[...]
$ debusine task_status 123456
status: finished
result: success
[...]
The following fields can be shown as part of the output of the task_status command:
- status: waiting/running/finished. When in "waiting", the task has not yet been executed on any worker. When in "running", it's currently being executed by a worker. When in "finished", the task is no longer running in the worker.
- result: that field is only meaningful when the status is finished, and it indicates the result of the job among success/failure/temporary-failure.
- schedule_time: datetime when the task has been scheduled
- start_time: datetime when the task began to be executed on the worker
- end_time: datetime when the task finished to run on the worker
- duration: number of seconds that the task took to be completed (end_time - start_time)
- worker: indicates the worker in charge of the task (only available once the task has been assigned to a worker, i.e. during execution or afterwards)
- task: show the name of the task that was scheduled
- task_id: show the identifier of the task
- task_data: show the arbitrary data associated to the task
Edited by Raphaël Hertzog