From cc076a20dc1226811d46f1fe866152fb90e9f6bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 20 Mar 2023 15:31:21 +0100 Subject: [PATCH] cron: reduce stalled job detection to 6 hours (#75478) --- wcs/qommon/management/commands/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/qommon/management/commands/cron.py b/wcs/qommon/management/commands/cron.py index b7171c750..f32fbaf28 100644 --- a/wcs/qommon/management/commands/cron.py +++ b/wcs/qommon/management/commands/cron.py @@ -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') -- 2.39.2