summaryrefslogtreecommitdiff
path: root/django/tasks/checks.py
blob: f0b26c5b0eb07f465daa186668ec04571c17e394 (plain)
1
2
3
4
5
6
7
8
9
10
11
from django.core import checks


@checks.register
def check_tasks(app_configs=None, **kwargs):
    """Checks all registered Task backends."""

    from . import task_backends

    for backend in task_backends.all():
        yield from backend.check()