angrybeanie_wagtail/env/lib/python3.12/site-packages/django_tasks/checks.py

17 lines
419 B
Python
Raw Permalink Normal View History

2025-07-25 21:32:16 +10:00
from collections.abc import Iterable, Sequence
from typing import Any
from django.apps.config import AppConfig
from django.core.checks.messages import CheckMessage
from django_tasks import tasks
def check_tasks(
app_configs: Sequence[AppConfig] = None, **kwargs: Any
) -> Iterable[CheckMessage]:
"""Checks all registered task backends."""
for backend in tasks.all():
yield from backend.check()