Skip to content

Commit

Permalink
Add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Dec 19, 2024
1 parent 6be83ba commit eb886e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cosmos/listeners/dag_run_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ 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")
print("The on_dag_run_success was called")
dag = dag_run.get_dag()
if not uses_cosmos(dag):
return
Expand All @@ -88,6 +89,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")
print("The on_dag_run_failed was called")
dag = dag_run.get_dag()
if not uses_cosmos(dag):
return
Expand Down

0 comments on commit eb886e3

Please sign in to comment.