airflow.providers.edge.worker_api.datamodels¶
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. |
|
The return class for the worker set state. |
Module Contents¶
- 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.
- dag_id: Annotated[str, Field(title='Dag ID', description='Identifier of the DAG to which the task belongs.')][source]¶
- map_index: Annotated[int, Field(title='Map Index', description='For dynamically mapped tasks the mapping number, -1 if the task is not mapped.')][source]¶
- try_number: Annotated[int, Field(title='Try Number', description='The number of attempt to execute this task.')][source]¶
- property key: airflow.models.taskinstancekey.TaskInstanceKey[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.
- class airflow.providers.edge.worker_api.datamodels.PushLogsBody(/, **data)[source]¶
Bases:
pydantic.BaseModel
Incremental new log content from worker.
- log_chunk_time: Annotated[datetime.datetime, Field(description='Time of the log chunk at point of sending.')][source]¶
- class airflow.providers.edge.worker_api.datamodels.WorkerSetStateReturn(/, **data)[source]¶
Bases:
pydantic.BaseModel
The return class for the worker set state.
- state: Annotated[airflow.providers.edge.models.edge_worker.EdgeWorkerState, Field(description='State of the worker from the view of the server.')][source]¶