module celery¶ The setup of celery. app.celery.async_task(app, *args, **kwargs) → Task[source]¶ Decorator to convert an async function into a Celery task. Parameters: app (Celery) – The Celery app instance. args (Any) – Positional arguments to pass to the Celery task decorator. kwargs (Any) – Keyword arguments to pass to the Celery task decorator. Return type: Task Returns: A Celery task decorator that wraps the async function. app.celery.init_sentry(**_kwargs) → None[source]¶ Initialize Sentry for Celery tasks. Return type: None