Skip to content
Snippets Groups Projects
Commit 08b1d981 authored by Alan De Smet's avatar Alan De Smet
Browse files

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.
parent 1b7d1d00
Branches
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ def main(): ...@@ -106,7 +106,7 @@ def main():
log_download_report = no_cleanup_report log_download_report = no_cleanup_report
stats = csppfetch.CleaningStats() 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: if has_lock:
csppfetch.delete_old_files(args.temporal_dir+"/L1b", args.oldest, stats) csppfetch.delete_old_files(args.temporal_dir+"/L1b", args.oldest, stats)
csppfetch.delete_old_files(args.temporal_dir+"/L2", args.oldest, stats) csppfetch.delete_old_files(args.temporal_dir+"/L2", args.oldest, stats)
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment