Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
Views
Browse files Browse the repository at this point in the history
  • Loading branch information
cunla committed Apr 10, 2023
1 parent 33fe1fd commit 40cf146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scheduler/management/commands/rqstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
ANSI_RESET = "\033[0m"

KEYS = ('jobs', 'started_jobs', 'deferred_jobs', 'finished_jobs', 'canceled_jobs', 'workers')


class Command(BaseCommand):
"""
Print statistics
Expand Down
2 changes: 1 addition & 1 deletion scheduler/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 40cf146

Please sign in to comment.