Skip to content
Snippets Groups Projects
Verified Commit 4d65440b authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix call of data checks

parent 54df673c
No related branches found
No related tags found
1 merge request!491Resolve "Make Celery non-optional"
......@@ -6,10 +6,10 @@ from django.utils.functional import classproperty
from django.utils.translation import gettext as _
import reversion
from celery.decorators import task
from reversion import set_comment
from templated_email import send_templated_mail
from .celery import app
from .util.core_helpers import get_site_preferences
......@@ -208,7 +208,7 @@ class DataCheckRegistry:
return [(check.name, check.verbose_name) for check in cls.data_checks]
@task()
@app.task
def check_data():
"""Execute all registered data checks and send email if activated."""
for check in DataCheckRegistry.data_checks:
......
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