GEOS-ESM / swell

Workflow system for coupled data assimilation applications
https://geos-esm.github.io/swell/
Apache License 2.0
15 stars 4 forks source link

(SE) Temporary folder handling #432

Open Dooruk opened 7 hours ago

Dooruk commented 7 hours ago

There are certain codetests that create templated YAMLs in /tmp, see below:

https://github.com/GEOS-ESM/swell/blob/dae29b4b5f67e0dd344af8a2ad70de67b56ef8cc/src/swell/utilities/scripts/task_question_dicts.py#L144

This location is not reliably erased and NCCS doesn't want us to fill this up so we should have a better temporary file handling.

For codestests; if everything works fine, they can be deleted. in case of an error, they should be kept until the user no longer needs them, which could be when the terminal is closed?

Dooruk commented 7 hours ago

Also somewhat relevant discussion in the GEOSgcm context:

https://github.com/GEOS-ESM/GEOSgcm/issues/814