Skip to content

Commit

Permalink
Report celery setup in list_versions
Browse files Browse the repository at this point in the history
This might help diagnose Celery configuration issues like in #2400.

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Nov 23, 2018
1 parent 4ecbb27 commit db3381d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions weblate/trans/management/commands/list_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ def handle(self, *args, **options):
for key, value in settings.CACHES.items()
)
)
self.stdout.write(
' * Celery: {}, {}, {}'.format(
settings.CELERY_BROKER_URL,
settings.CELERY_RESULT_BACKEND,
'eager' if settings.CELERY_TASK_ALWAYS_EAGER else 'regular',
)
)
self.stdout.write(
' * Platform: {} {} ({})'.format(
platform.system(),
Expand Down

0 comments on commit db3381d

Please sign in to comment.