[Bug] Cosmos stale temporary directories #958
Labels
area:execution
Related to the execution environment/mode, like Docker, Kubernetes, Local, VirtualEnv, etc
bug
Something isn't working
epic-assigned
priority:high
High priority issues are blocking or critical issues without a workaround and large impact
Milestone
Context
It seems sometimes Cosmos is creating and not deleting temporary directories.
An example of a report, from 30 April 2024 in the #airflow-dbt Slack channel:
https://apache-airflow.slack.com/archives/C059CC42E9W/p1714484749579599
There have been previous discussions in the core Airflow apache/airflow#22404 about tempfile.TemporaryDirectory doesn't necessarily behaving as expected.
I was not able to reproduce this issue yet, but one possibility is that there is some exception or error, and the context manager
tempfile.TemporaryDirectory
is not being able to clean things after those scenarios.Acceptance criteria
The text was updated successfully, but these errors were encountered: