airflow.providers.edge.worker_api.datamodels
¶
Module Contents¶
Classes¶
Documentation collection for the worker API. |
|
Base JSON RPC request model to define just the method. |
|
JSON RPC request model. |
|
Basic attributes of a job on the edge worker. |
|
Job that is to be executed on the edge worker. |
|
Queues that a worker supports to run jobs on. |
|
Queues that a worker supports to run jobs on. |
|
Details of the worker state sent to the scheduler. |
|
Changed queues for the worker. |
|
Incremental new log content from worker. |
- class airflow.providers.edge.worker_api.datamodels.WorkerApiDocs[source]¶
Documentation collection for the worker API.
- class airflow.providers.edge.worker_api.datamodels.JsonRpcRequestBase(/, **data)[source]¶
Bases:
pydantic.BaseModel
Base JSON RPC request model to define just the method.
- class airflow.providers.edge.worker_api.datamodels.JsonRpcRequest(/, **data)[source]¶
Bases:
JsonRpcRequestBase
JSON RPC request model.
- class airflow.providers.edge.worker_api.datamodels.EdgeJobBase(/, **data)[source]¶
Bases:
pydantic.BaseModel
Basic attributes of a job on the edge worker.
- property key: airflow.models.taskinstancekey.TaskInstanceKey[source]¶
- dag_id: Annotated[str, Field(title='Dag ID', description='Identifier of the DAG to which the task belongs.')][source]¶
- class airflow.providers.edge.worker_api.datamodels.EdgeJobFetched(/, **data)[source]¶
Bases:
EdgeJobBase
Job that is to be executed on the edge worker.
- class airflow.providers.edge.worker_api.datamodels.WorkerQueuesBase(/, **data)[source]¶
Bases:
pydantic.BaseModel
Queues that a worker supports to run jobs on.
- class airflow.providers.edge.worker_api.datamodels.WorkerQueuesBody(/, **data)[source]¶
Bases:
WorkerQueuesBase
Queues that a worker supports to run jobs on.
- class airflow.providers.edge.worker_api.datamodels.WorkerStateBody(/, **data)[source]¶
Bases:
WorkerQueuesBase
Details of the worker state sent to the scheduler.
- state: Annotated[airflow.providers.edge.models.edge_worker.EdgeWorkerState, Field(description='State of the worker from the view of the worker.')][source]¶
- jobs_active: Annotated[int, Field(description='Number of active jobs the worker is running.')] = 0[source]¶
- class airflow.providers.edge.worker_api.datamodels.WorkerQueueUpdateBody(/, **data)[source]¶
Bases:
pydantic.BaseModel
Changed queues for the worker.