mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-13 02:57:03 +00:00
fix(airflow): fix lint related to dag_run field (#11616)
This commit is contained in:
parent
0d06a61365
commit
be1b8806a7
@ -383,13 +383,11 @@ class DataHubListener:
|
|||||||
return
|
return
|
||||||
|
|
||||||
logger.debug(
|
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):
|
if not self.config.dag_filter_pattern.allowed(task_instance.dag_id):
|
||||||
logger.debug(
|
logger.debug(f"DAG {task_instance.dag_id} is not allowed by the pattern")
|
||||||
f"DAG {task_instance.dag_run.dag_id} is not allowed by the pattern"
|
|
||||||
)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.config.render_templates:
|
if self.config.render_templates:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user