Skip to content

Commit

Permalink
Fix the reference to the DAG file
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed May 23, 2024
1 parent 4f8bcbc commit 83480fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmos/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def calculate_current_version(dag_id: str, project_dir: Path) -> str:
start_time = time.process_time()

# When DAG file was last changed - this is very slow (e.g. 0.6s)
caller_dag_frame = inspect.stack()[1]
caller_dag_frame = inspect.stack()[2]
caller_dag_filepath = Path(caller_dag_frame.filename)
logger.info(f"The {dag_id} DAG is located in: {caller_dag_filepath}")
dag_last_modified = caller_dag_filepath.stat().st_mtime
Expand Down

0 comments on commit 83480fd

Please sign in to comment.