Esteban Maya a230f4fb2c
🏷️ Add mypy to the GitHub Action for tests and fixed types in the whole project (#655)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-03-10 19:47:21 +00:00

12 lines
254 B
Python

import sentry_sdk
from app.core.celery_app import celery_app
from app.core.config import settings
sentry_sdk.init(dsn=str(settings.SENTRY_DSN))
@celery_app.task(acks_late=True)
def test_celery(word: str) -> str:
return f"test task return {word}"