mik-laj commented on a change in pull request #10282:
URL: https://github.com/apache/airflow/pull/10282#discussion_r468146601
##########
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":
+ raise AirflowClusterPolicyViolation(
+ f'''Task must have non-None non-'airflow' owner.
Review comment:
```suggestion
f'''Task must have non-None non-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:
[email protected]