airflow.providers.edge3.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 registration. |
|
The return class for the worker set state. |
Module Contents¶
- class airflow.providers.edge3.worker_api.datamodels.WorkerApiDocs[source]¶
Documentation collection for the worker API.
- class airflow.providers.edge3.worker_api.datamodels.JsonRpcRequestBase(/, **data)[source]¶
Bases:
pydantic.BaseModelBase JSON RPC request model to define just the method.
- class airflow.providers.edge3.worker_api.datamodels.JsonRpcRequest(/, **data)[source]¶
Bases:
JsonRpcRequestBaseJSON RPC request model.
- class airflow.providers.edge3.worker_api.datamodels.EdgeJobBase(/, **data)[source]¶
Bases:
pydantic.BaseModelBasic 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]¶
- class airflow.providers.edge3.worker_api.datamodels.EdgeJobFetched(/, **data)[source]¶
Bases:
EdgeJobBaseJob that is to be executed on the edge worker.
- command: Annotated[airflow.executors.workloads.ExecuteTask, Field(title='Command', description='Command line to use to execute the job in Airflow')][source]¶
- class airflow.providers.edge3.worker_api.datamodels.WorkerQueuesBase(/, **data)[source]¶
Bases:
pydantic.BaseModelQueues that a worker supports to run jobs on.
- class airflow.providers.edge3.worker_api.datamodels.WorkerQueuesBody(/, **data)[source]¶
Bases:
WorkerQueuesBaseQueues that a worker supports to run jobs on.
- class airflow.providers.edge3.worker_api.datamodels.WorkerStateBody(/, **data)[source]¶
Bases:
WorkerQueuesBaseDetails of the worker state sent to the scheduler.
- state: Annotated[airflow.providers.edge3.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]¶
- queues: Annotated[list[str] | None, Field(description='List of queues the worker is pulling jobs from. If not provided, worker pulls from all queues.')] = None[source]¶
- class airflow.providers.edge3.worker_api.datamodels.WorkerQueueUpdateBody(/, **data)[source]¶
Bases:
pydantic.BaseModelChanged queues for the worker.
- class airflow.providers.edge3.worker_api.datamodels.PushLogsBody(/, **data)[source]¶
Bases:
pydantic.BaseModelIncremental 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.edge3.worker_api.datamodels.WorkerRegistrationReturn(/, **data)[source]¶
Bases:
pydantic.BaseModelThe return class for the worker registration.
- last_update: Annotated[datetime.datetime, Field(description='Time of the last update of the worker.')][source]¶
- versions_match: Annotated[bool, Field(description='Whether the worker and the server have matching versions of Airflow and the Edge Provider. If False, the worker version is not matching and might need to be upgraded. But version is still compatible enough to work. If True, worker and server versions match.')] = False[source]¶
- class airflow.providers.edge3.worker_api.datamodels.WorkerSetStateReturn(/, **data)[source]¶
Bases:
pydantic.BaseModelThe return class for the worker set state.
- state: Annotated[airflow.providers.edge3.models.edge_worker.EdgeWorkerState, Field(description='State of the worker from the view of the server.')][source]¶
- queues: Annotated[list[str] | None, Field(description='List of queues the worker is pulling jobs from. If not provided, worker pulls from all queues.')][source]¶
- maintenance_comments: Annotated[str | None, Field(description='Comments about the maintenance state of the worker.')] = None[source]¶
- concurrency: Annotated[int | None, Field(description='Desired concurrency for the worker set by an administrator. None means no remote override; the worker uses its startup value.')] = None[source]¶
- versions_match: Annotated[bool, Field(description='Whether the worker and the server have matching versions of Airflow and the Edge Provider. If False, the worker version is not matching and might need to be upgraded. But version is still compatible enough to work. If True, worker and server versions match.')] = False[source]¶