From 08b1d98179d8b3b04bf3b8e772270e999f6394a4 Mon Sep 17 00:00:00 2001 From: Alan De Smet <alan.desmet@ssec.wisc.edu> Date: Fri, 17 Nov 2023 08:27:40 -0600 Subject: [PATCH] Put PID/Lock file IN temporal directory, not next to. Likely typo. We have no guarantee we can write in the parent of the temporal directory. --- example/aitf-clean-temporal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/aitf-clean-temporal b/example/aitf-clean-temporal index 87376c6..347a7fc 100755 --- a/example/aitf-clean-temporal +++ b/example/aitf-clean-temporal @@ -106,7 +106,7 @@ def main(): log_download_report = no_cleanup_report stats = csppfetch.CleaningStats() - with PIDLockFile(args.temporal_dir+"cleaning-process.pid") as has_lock: + with PIDLockFile(args.temporal_dir+"/cleaning-process.pid") as has_lock: if has_lock: csppfetch.delete_old_files(args.temporal_dir+"/L1b", args.oldest, stats) csppfetch.delete_old_files(args.temporal_dir+"/L2", args.oldest, stats) -- GitLab