airflow.providers.edge.cli.edge_command

Module Contents

Functions

force_use_internal_api_on_edge_worker()

Ensure that the environment is configured for the internal API without needing to declare it outside.

worker(args)

Start Airflow Edge Worker.

stop(args)

Stop a running Airflow Edge Worker.

Attributes

logger

EDGE_WORKER_PROCESS_NAME

EDGE_WORKER_HEADER

ARG_CONCURRENCY

ARG_QUEUES

ARG_EDGE_HOSTNAME

EDGE_COMMANDS

airflow.providers.edge.cli.edge_command.logger[source]
airflow.providers.edge.cli.edge_command.EDGE_WORKER_PROCESS_NAME = 'edge-worker'[source]
airflow.providers.edge.cli.edge_command.EDGE_WORKER_HEADER[source]
airflow.providers.edge.cli.edge_command.force_use_internal_api_on_edge_worker()[source]

Ensure that the environment is configured for the internal API without needing to declare it outside.

This is only required for an Edge worker and must to be done before the Click CLI wrapper is initiated. That is because the CLI wrapper will attempt to establish a DB connection, which will fail before the function call can take effect. In an Edge worker, we need to “patch” the environment before starting.

airflow.providers.edge.cli.edge_command.worker(args)[source]

Start Airflow Edge Worker.

airflow.providers.edge.cli.edge_command.stop(args)[source]

Stop a running Airflow Edge Worker.

airflow.providers.edge.cli.edge_command.ARG_CONCURRENCY[source]
airflow.providers.edge.cli.edge_command.ARG_QUEUES[source]
airflow.providers.edge.cli.edge_command.ARG_EDGE_HOSTNAME[source]
airflow.providers.edge.cli.edge_command.EDGE_COMMANDS: list[airflow.cli.cli_config.ActionCommand][source]

Was this entry helpful?