aiscalator.airflow package

Submodules

aiscalator.airflow.command module

Implementations of commands for Airflow

aiscalator.airflow.command.airflow_cmd(conf: aiscalator.core.config.AiscalatorConfig, service='webserver', cmd=None)[source]

Execute an airflow subcommand

Parameters
  • conf (AiscalatorConfig) – Configuration object for the application

  • service (string) – service name of the container where to run the command

  • cmd (list) – subcommands to run

aiscalator.airflow.command.airflow_down(conf: aiscalator.core.config.AiscalatorConfig)[source]

Stop an airflow environment

Parameters

conf (AiscalatorConfig) – Configuration object for the application

aiscalator.airflow.command.airflow_edit(conf: aiscalator.core.config.AiscalatorConfig)[source]

Starts an airflow environment

Parameters

conf (AiscalatorConfig) – Configuration object for the application

aiscalator.airflow.command.airflow_push(conf: aiscalator.core.config.AiscalatorConfig)[source]

Starts an airflow environment

Parameters

conf (AiscalatorConfig) – Configuration object for the application

aiscalator.airflow.command.airflow_setup(conf: aiscalator.core.config.AiscalatorConfig, config_home: str, workspace: list, append: bool = True)[source]

Setup the airflow configuration files and environment

Parameters
  • conf (AiscalatorConfig) – Configuration object for the application

  • config_home (str) – path to the configuration home directory

  • workspace (list) – List of path to directories to mount as volumes to airflow workers to use as workspaces

  • append (bool) – flag to tell if workspace should be appended to the list in the config or replace it.

aiscalator.airflow.command.airflow_up(conf: aiscalator.core.config.AiscalatorConfig)[source]

Starts an airflow environment

Parameters

conf (AiscalatorConfig) – Configuration object for the application

aiscalator.airflow.cli module

CLI module for Airflow related commands.

Module contents