airflow.providers.edge3.worker_api.routes.worker¶
Attributes¶
Functions¶
|
Redefine the state of the worker based on maintenance or shutdown request. |
Add new maintenance comments or overwrite the old ones if it is too long. |
|
|
Register a new worker to the backend. |
|
Set state of worker and returns the current assigned queues. |
|
Module Contents¶
- airflow.providers.edge3.worker_api.routes.worker.redefine_state(worker_state, body_state)[source]¶
Redefine the state of the worker based on maintenance or shutdown request.
- airflow.providers.edge3.worker_api.routes.worker.redefine_maintenance_comments(worker_maintenance_comment, body_maintenance_comments)[source]¶
Add new maintenance comments or overwrite the old ones if it is too long.
- airflow.providers.edge3.worker_api.routes.worker.register(worker_name, body, session)[source]¶
Register a new worker to the backend.