Skip to content
Snippets Groups Projects
Verified Commit 64582b72 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Make data checks compatible with non-optional Celery

parent d579eec2
No related branches found
No related tags found
1 merge request!509Make data checks compatible with non-optional Celery
Pipeline #6185 passed
......@@ -750,16 +750,14 @@ class RunDataChecks(PermissionRequiredMixin, View):
permission_required = "core.run_data_checks"
def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
if not check_data()[1]:
messages.success(
request,
_(
"The data check has been started. Please note that it may take "
"a while before you are able to fetch the data on this page."
),
)
else:
messages.success(request, _("The data check has finished."))
check_data.delay()
messages.success(
request,
_(
"The data check has been started. Please note that it may take "
"a while before you are able to fetch the data on this page."
),
)
return redirect("check_data")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment