Airflow: Environment variables reference

Created on 19 Jun 2020  路  8Comments  路  Source: apache/airflow

Hello,

I think it's worth creating a list of environment variables used by Airflow. This will allow you to refer to it from other places in the documentation. We should use envvar directive in this docs.

This list can be added to the file: docs/cli-ref.rst (preview)

We have the following environment variables

.. envvar:: AIRFLOW__{SECTION}__{KEY}
.. envvar:: AIRFLOW__{SECTION}__{KEY}_CMD
.. envvar:: AIRFLOW_CONFIG
.. envvar:: AIRFLOW_CONN_{CONN_ID}
.. envvar:: AIRFLOW_HOME
.. envvar:: AIRFLOW_VAR_{KEY}

We can be inspired by the following links
https://docs.docker.com/compose/reference/envvars/
https://raw.githubusercontent.com/python/cpython/7864f11cdf12807555d62c7a132c191eb41ecc02/Doc/using/cmdline.rst
https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH

If anyone is interested in this, I am willing to provide all the necessary tips and information.

Are you wondering how to start contributing to this project? Start by reading our contributor guide

Best regards,
Kamil

docs good first issue feature

Most helpful comment

@mik-laj I鈥檇 like to grab this one if that鈥檚 ok 馃檪 I just finished reading through the contribution guideline/documentation and this will be my first issue. Please let me know if you have any additional info that you think will be helpful.

All 8 comments

@mik-laj please assign this to me.

@jkrajpal I assigned you 馃殌 @mik-laj I suppose we would like to use the config.yml to generate the envvar reference?

@turbaszek Why would I do that? I would like to have a list of only 6 options. In case of AIRFLOW__{SECTION}__{KEY}. I would like a description that is related to the configuration options and a link to the documentation with all configuration options.

The user who wanted to do this task deleted the account, so this ticket is now free.

@mik-laj I鈥檇 like to grab this one if that鈥檚 ok 馃檪 I just finished reading through the contribution guideline/documentation and this will be my first issue. Please let me know if you have any additional info that you think will be helpful.

@faihegberg You are already assigned to this ticket. When you create a PR it will be easier for us to discuss the details.

Hi, came across this issue. There's now a broken link on dag-run - the link that points to: https://airflow.readthedocs.io/en/latest/cli-ref.html#backfill

"The backfill command will re-run all the instances of the dag_id for all the intervals within the start date and end date."

I noticed @faihegberg added a redirect but it doesn't appear to be working?

Edit: Actually, I think I misunderstood the redirect's function. I think this is just a broken link that needs to be fixed. Does this issue get re-opened? If it requires a new issue, I'd like to handle it (it'd be my first Airflow PR).

@gflores1023 If you want to propose a change then you don't have a ticket. It is enough to create a PR.

Was this page helpful?
0 / 5 - 0 ratings