Skip to content

Commit

Permalink
Fix unsupported use of celery.task in Status Page
Browse files Browse the repository at this point in the history
Fixes #22.
  • Loading branch information
PasiSa committed Jun 29, 2022
1 parent 321b14f commit a95f3bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def get_context_data(self, **kwargs):
context['dynamic_form_cache_size'] = len(DynamicFeedbacForm.FORM_CACHE)
context['dynamic_form_cache_max'] = DynamicFeedbacForm.FORM_CACHE.max_size

from celery.task.control import inspect
i = inspect()
from jutut.celery import app
i = app.control.inspect()
context['celery_stats'] = celery_stats = {}
for group in ('active', 'scheduled', 'reserved'):
for host, items in (getattr(i, group)() or {}).items():
Expand Down

0 comments on commit a95f3bd

Please sign in to comment.