Open ilopezgp opened 3 years ago
Tangential to this, if the hpc pipeline fails. temporary files are not deleted. My motivation for using the temporary directories was that files are deleted even if Julia crashes. However, if we are good at properly handling Julia errors, I suppose we can find a compromise.
The removal of TC.jl output is now done implicitly through its storage in temporary files that are deleted once the Julia process ends. This approach works for the HPC pipeline, where control is returned to the system after every step of the process, but not for the pmap pipeline, which is a single Julia process.
The result is the buildup of TC.jl output data that can lead to memory overflow in the system used. We should handle the output better so that this does not happen and the TC.jl outputs are deleted after every EKP step.