cron: reduce stalled job detection to 6 hours (#75478) #174
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue