fl_server_ai.trainer.tasks ¶
Functions:
| Name | Description |
|---|---|
dispatch_trainer_task | Dispatch a trainer task asynchronously. |
process_trainer_task | Celery task that processes a dispatched trainer task. |
Attributes¶
Classes¶
Functions¶
dispatch_trainer_task ¶
dispatch_trainer_task(training: Training, event_cls: Type[ModelTrainerEvent], lock_training: bool)
Dispatch a trainer task asynchronously.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
| Training | The training to dispatch the task for. | required |
| Type[ModelTrainerEvent] | The class of the event to handle. | required |
| bool | Whether to lock the training. | required |
Source code in fl_server_ai/trainer/tasks.py
process_trainer_task ¶
process_trainer_task(training_uuid: UUID, event_cls: Type[ModelTrainerEvent])
Celery task that processes a dispatched trainer task.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
| UUID | The UUID of the training. | required |
| Type[ModelTrainerEvent] | The class of the event to handle. | required |