alab_management.task_manager.task_manager module#
TaskLauncher is the core module of the system, which actually executes the tasks.
- class TaskManager[source]#
Bases:
objectTaskManager will.
find all the ready tasks and submit them,
handle all the resource requests
- clean_up_tasks_from_previous_runs()[source]#
Arm cleanup for leftover RUNNING / REQUESTING_RESOURCES tasks without blocking.
INITIATED tasks are requeued to READY immediately. For each dangling task a dashboard restart-cleanup prompt is posted; device/sample locks stay held until the operator OKs that prompt (handled by the dashboard completer). Dramatiq can start consuming other work right away.
This typically occurs if workers were exited (SIGTERM / crash) while tasks were still RUNNING or REQUESTING_RESOURCES.