fix(airflow): fix lint related to dag_run field (#11616)

This commit is contained in:
Harshal Sheth 2024-10-15 01:39:41 -07:00 committed by GitHub
parent 0d06a61365
commit be1b8806a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,13 +383,11 @@ class DataHubListener:
return
logger.debug(
f"DataHub listener got notification about task instance start for {task_instance.task_id} of dag {task_instance.dag_run.dag_id}"
f"DataHub listener got notification about task instance start for {task_instance.task_id} of dag {task_instance.dag_id}"
)
if not self.config.dag_filter_pattern.allowed(task_instance.dag_run.dag_id):
logger.debug(
f"DAG {task_instance.dag_run.dag_id} is not allowed by the pattern"
)
if not self.config.dag_filter_pattern.allowed(task_instance.dag_id):
logger.debug(f"DAG {task_instance.dag_id} is not allowed by the pattern")
return
if self.config.render_templates: