Skip to content

Commit

Permalink
Add debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Dec 19, 2024
1 parent 7ef7c25 commit 6be83ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cosmos/listeners/dag_run_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def uses_cosmos(dag: DAG) -> bool:

@hookimpl
def on_dag_run_success(dag_run: DagRun, msg: str) -> None:
logger.info("The on_dag_run_success was called")
dag = dag_run.get_dag()

if not uses_cosmos(dag):
return

Expand All @@ -87,6 +87,7 @@ def on_dag_run_success(dag_run: DagRun, msg: str) -> None:

@hookimpl
def on_dag_run_failed(dag_run: DagRun, msg: str) -> None:
logger.info("The on_dag_run_failed was called")
dag = dag_run.get_dag()
if not uses_cosmos(dag):
return
Expand Down

0 comments on commit 6be83ba

Please sign in to comment.