From 64ea26573366785d055e5c2d43e9ae27a20a6910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 15 Nov 2018 11:46:17 +0100 Subject: [PATCH] management: add possibility to limit cron to a single application (#28040) --- combo/data/management/commands/cron.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/combo/data/management/commands/cron.py b/combo/data/management/commands/cron.py index 61977f1c..baa534ee 100644 --- a/combo/data/management/commands/cron.py +++ b/combo/data/management/commands/cron.py @@ -33,6 +33,8 @@ class Command(BaseCommand): for appconfig in apps.get_app_configs(): if not hasattr(appconfig, 'hourly'): continue + if options.get('application') and appconfig.name != options.get('application'): + continue if hasattr(appconfig, 'is_enabled') and not appconfig.is_enabled(): continue try: -- 2.19.1