Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced documentation around Cluster Policy #8660 #8661

Merged
merged 3 commits into from
May 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/concepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,13 @@ may look like inside your ``airflow_local_settings.py``:
if task.timeout > timedelta(hours=48):
task.timeout = timedelta(hours=48)

To define policy, add a ``airflow_local_settings`` module to your PYTHONPATH
or to AIRFLOW_HOME/config folder that defines this ``policy`` function. It receives a ``TaskInstance``
object and can alter it where needed.

Please note, cluster policy currently applies to task only though you can access DAG via ``task.dag`` property.
Also, cluster policy will have precedence over task attributes defined in DAG
meaning if ``task.sla`` is defined in dag and also mutated via cluster policy then later will have precedence.

Documentation & Notes
=====================
Expand Down