From 831536143c9e4c27bafedd37ead1e535c9c008b0 Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Wed, 11 Apr 2018 14:06:06 +0200 Subject: [PATCH 4/5] management/commands/tenant_command.py: only consider DISABLE_CRON_JOBS if --all-tenants is used --- hobo/multitenant/management/commands/tenant_command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hobo/multitenant/management/commands/tenant_command.py b/hobo/multitenant/management/commands/tenant_command.py index 2d71638..a1d33d5 100644 --- a/hobo/multitenant/management/commands/tenant_command.py +++ b/hobo/multitenant/management/commands/tenant_command.py @@ -48,7 +48,8 @@ class Command(InteractiveTenantOption, BaseCommand): help='Run command even if DISABLE_CRON_JOBS is set' ) args_namespace, args = args_parser.parse_known_args(argv) - if not args_namespace.force_job and getattr(settings, 'DISABLE_CRON_JOBS', False): + if args_namespace.all_tenants and not args_namespace.force_job \ + and getattr(settings, 'DISABLE_CRON_JOBS', False): if kwargs.get('verbosity') > 1: print('Command %s is ignored because DISABLE_CRON_JOBS is set' % app_name) -- 2.11.0