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(folder, retention) None [source]
Cleans items from the given folder that have exceeded the retention time, starting with the oldest items