Service cleaner
cleaner.py
The cleaner service of mercure. Responsible for deleting processed data after retention time has passed and if it is offpeak time. Offpeak is the time period when the cleaning has to be done, because cleaning I/O should be kept to minimum when receiving and sending exams.
- cleaner.clean_dir(discard_folder, retention) None [source]
Cleans the discard folder if it is older than the retention time, starting from oldest first.