cron: reduce stalled job detection to 6 hours (#75478) #174

Merged
fpeters merged 1 commits from wip/75478-cron-reduce-stalled-detection into main 2023-03-21 07:55:15 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class Command(BaseCommand):
status, timestamp = sql.get_cron_status()
if status == 'running':
running += 1
if now() - timestamp > datetime.timedelta(days=1):
if now() - timestamp > datetime.timedelta(hours=6):
stalled_tenants.append(hostname)
CronJob.log('stalled tenant: %s' % hostname)
sql.mark_cron_status('done')