Tracker#
top.core.tracker.Tracker class.
- class Tracker[source]#
Bases:
ABC
Task tracker backend interface definition.
- __init__()#
Methods
__init__
()clear
()Clear the tracker from old/dangling tasks.
end_task
(task)Finish exisiting task.
Get currently active tasks.
Get the backlog of completed tasks.
start_task
(task)Start a new task.
- abstract clear()[source]#
Clear the tracker from old/dangling tasks.
For example if the server has
Crashed
Restarted
Get rid of any stale data.
Can be called on the web server start.
- abstract start_task(task)[source]#
Start a new task.
Record a task started in the tracker backend.
- Parameters:
task (Task) –
- abstract end_task(task)[source]#
Finish exisiting task.
Mark task completed.
- Parameters:
task (Task) –