diff --git a/scheduler/management/commands/rqstats.py b/scheduler/management/commands/rqstats.py index 0912dac..a9a86a2 100644 --- a/scheduler/management/commands/rqstats.py +++ b/scheduler/management/commands/rqstats.py @@ -10,6 +10,8 @@ ANSI_RESET = "\033[0m" KEYS = ('jobs', 'started_jobs', 'deferred_jobs', 'finished_jobs', 'canceled_jobs', 'workers') + + class Command(BaseCommand): """ Print statistics diff --git a/scheduler/settings.py b/scheduler/settings.py index f16aaa6..59e3cda 100644 --- a/scheduler/settings.py +++ b/scheduler/settings.py @@ -13,7 +13,7 @@ def conf_settings(): QUEUES = getattr(settings, 'SCHEDULER_QUEUES', None) if QUEUES is None: - logger.warning(f'Configuration using RQ_QUEUES is deprecated. Use SCHEDULER_QUEUES instead') + logger.warning('Configuration using RQ_QUEUES is deprecated. Use SCHEDULER_QUEUES instead') QUEUES = getattr(settings, 'RQ_QUEUES', None) if QUEUES is None: raise ImproperlyConfigured("You have to define RQ_QUEUES in settings.py")