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/08/10 19:56:32 UTC

[GitHub] [airflow] mik-laj commented on a change in pull request #10282: Add ClusterPolicyViolation support to airflow local settings

mik-laj commented on a change in pull request #10282:
URL: https://github.com/apache/airflow/pull/10282#discussion_r468146440



##########
File path: tests/test_local_settings.py
##########
@@ -42,6 +43,15 @@ def pod_mutation_hook(pod):
     pod.namespace = 'airflow-tests'
 """
 
+SETTINGS_FILE_CUSTOM_POLICY = """
+def task_must_have_owners(task: BaseOperator):
+    if not task.owner or task.owner.lower() == "airflow":

Review comment:
       ```suggestion
       if not task.owner or task.owner.lower() == conf.get('operators', 'default_owner'):
   ```




----------------------------------------------------------------
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