mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-22 22:03:54 +03:00
Removed needing of restart for KEEP_INFO_TIME
This commit is contained in:
parent
3041e9d2cd
commit
092b3bcbce
@ -57,7 +57,7 @@ class UserServiceInfoItemsCleaner(Job):
|
||||
|
||||
@transaction.commit_on_success
|
||||
def run(self):
|
||||
removeFrom = getSqlDatetime() - timedelta(seconds = GlobalConfig.KEEP_INFO_TIME.getInt())
|
||||
removeFrom = getSqlDatetime() - timedelta(seconds = GlobalConfig.KEEP_INFO_TIME.getInt(True))
|
||||
logger.debug('Removing information user services from {0}'.format(removeFrom))
|
||||
UserService.objects.select_for_update().filter(state__in=State.INFO_STATES, state_date__lt=removeFrom).delete()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user