Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Dec 20, 2024
1 parent 940a1a2 commit 7661ab3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cosmos/listeners/dag_run_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ def on_dag_run_success(dag_run: DagRun, msg: str) -> None:

dag = dag_run.get_dag()
logger.info(f"dir: {dir(dag)}")
logger.info(f"1: {dag.fileloc}")
logger.info(f"2:{dag.filepath}")
logger.info(f"3: {dag.task_dict}")
logger.info(f"4: {dag.task_group_dict}")
logger.info(f"5: {dag.serialize_to_json()}")
logger.info(f"6: {dag.deserialize_dag()}")

if not uses_cosmos(dag):
logger.info("The DAG does not use Cosmos")
Expand Down

0 comments on commit 7661ab3

Please sign in to comment.