You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/01 11:09:29 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #8661: Enhanced documentation around Cluster Policy #8660

kaxil commented on a change in pull request #8661:
URL: https://github.com/apache/airflow/pull/8661#discussion_r418502421



##########
File path: docs/concepts.rst
##########
@@ -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.

Review comment:
       ```suggestion
   Please note, cluster policy currently applies to task only though you can access DAG via ``task.dag`` property.
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org