Task Broker¶
It can be imported from fluid.scheduler:
fluid.scheduler.TaskBroker
¶
Bases: ABC
Abstract base class for task brokers
A TaskBroker is responsible for queuing tasks & storing task information
Source code in fluid/scheduler/broker.py
queue_task
abstractmethod
async
¶
Queue a task run
This method is called by the TaskManager when a task run is ready to be executed. The broker is responsible for adding the task run to the appropriate queue based on its priority.
| PARAMETER | DESCRIPTION |
|---|---|
task_run
|
Task run
TYPE:
|
Source code in fluid/scheduler/broker.py
get_task_run
abstractmethod
async
¶
queue_length
abstractmethod
async
¶
get_tasks_info
abstractmethod
async
¶
update_task
abstractmethod
async
¶
add_task_run
abstractmethod
async
¶
remove_task_run
abstractmethod
async
¶
current_task_runs
abstractmethod
async
¶
close
abstractmethod
async
¶
lock
abstractmethod
¶
new_uuid
¶
filter_tasks
async
¶
Source code in fluid/scheduler/broker.py
task_from_registry
¶
register_task
¶
enable_task
async
¶
Enable or disable a registered task