Resolve "Add overview page for celery task results"
Closes #223 (closed)
Edited by Tom Teichler
Merge request reports
Activity
added type::feature workflow::discussing labels
added 1 commit
- 8b943148 - Show celery task results on system status page
assigned to @hansegucker
- Resolved by Tom Teichler
- Resolved by Tom Teichler
added 1 commit
- e51f4a7a - Show celery task results on system status page
- Resolved by Tom Teichler
Please review again…
If celery is not running, the following happens:
Traceback (most recent call last): File "/home/wethjo/.cache/pypoetry/virtualenvs/aleksis-9WSQE4wq-py3.8/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/home/wethjo/.cache/pypoetry/virtualenvs/aleksis-9WSQE4wq-py3.8/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "/home/wethjo/.cache/pypoetry/virtualenvs/aleksis-9WSQE4wq-py3.8/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python3.8/contextlib.py", line 75, in inner return func(*args, **kwds) File "/home/wethjo/.cache/pypoetry/virtualenvs/aleksis-9WSQE4wq-py3.8/lib/python3.8/site-packages/rules/contrib/views.py", line 221, in _wrapped_view return view_func(request, *args, **kwargs) File "/home/wethjo/dev/AlekSIS/aleksis/core/views.py", line 303, in system_status job_list = list(inspect().registered_tasks().values())[0] Exception Type: AttributeError at /status/ Exception Value: 'NoneType' object has no attribute 'values'
Edited by Jonathan Weth- Resolved by Tom Teichler
Tom and I discussed whether we wanted to display only tasks that already ran and yielded a result at least once, or all registered tasks (because the first would mean to just query the TaskResult model, the latter introspecting celery).
added 8 commits
-
e51f4a7a...aa288c4e - 7 commits from branch
master
- 00dec64f - Merge branch 'master' into 223-add-overview-page-for-celery-task-results
-
e51f4a7a...aa288c4e - 7 commits from branch
Please register or sign in to reply