Skip to content

Commit a95f3bd

Browse files
committed
Fix unsupported use of celery.task in Status Page
Fixes #22.
1 parent 321b14f commit a95f3bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def get_context_data(self, **kwargs):
2222
context['dynamic_form_cache_size'] = len(DynamicFeedbacForm.FORM_CACHE)
2323
context['dynamic_form_cache_max'] = DynamicFeedbacForm.FORM_CACHE.max_size
2424

25-
from celery.task.control import inspect
26-
i = inspect()
25+
from jutut.celery import app
26+
i = app.control.inspect()
2727
context['celery_stats'] = celery_stats = {}
2828
for group in ('active', 'scheduled', 'reserved'):
2929
for host, items in (getattr(i, group)() or {}).items():

0 commit comments

Comments
 (0)