From 40cf14696c9a6d1a37018ccd8e1f520489ceab30 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Mon, 10 Apr 2023 17:54:31 -0400 Subject: [PATCH] Views --- scheduler/management/commands/rqstats.py | 2 ++ scheduler/settings.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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")