Open bugsbriez opened 6 years ago
Hello
We hit a problem in production, we wanted to keep 3 day of empty run (for week end analysis) and set hoursrunwithoutresultiskept at 72
And we ended with nothing purge
After a quick lookup at cleanup.py, I'v seen that the function _cleanrunsnothingreceived() do not purge entry older than 25h
It will be better to replace : onlycheckrunsofoneday = datetime.datetime.today() - datetime.timedelta(hours=25)
onlycheckrunsofoneday = datetime.datetime.today() - datetime.timedelta(hours=25)
By : onlycheckrunsofoneday = datetime.datetime.today() - datetime.timedelta(hours=(botsglobal.ini.getint('settings','hoursrunwithoutresultiskept',1)+1))
onlycheckrunsofoneday = datetime.datetime.today() - datetime.timedelta(hours=(botsglobal.ini.getint('settings','hoursrunwithoutresultiskept',1)+1))
Hello
We hit a problem in production, we wanted to keep 3 day of empty run (for week end analysis) and set hoursrunwithoutresultiskept at 72
And we ended with nothing purge
After a quick lookup at cleanup.py, I'v seen that the function _cleanrunsnothingreceived() do not purge entry older than 25h
It will be better to replace :
onlycheckrunsofoneday = datetime.datetime.today() - datetime.timedelta(hours=25)
By :
onlycheckrunsofoneday = datetime.datetime.today() - datetime.timedelta(hours=(botsglobal.ini.getint('settings','hoursrunwithoutresultiskept',1)+1))