2024-03-07 11:35:33 -05:00
|
|
|
import sentry_sdk
|
2019-02-09 19:42:36 +04:00
|
|
|
|
|
|
|
|
from app.core.celery_app import celery_app
|
2020-04-20 19:03:13 +02:00
|
|
|
from app.core.config import settings
|
2019-02-09 19:42:36 +04:00
|
|
|
|
2024-03-10 14:47:21 -05:00
|
|
|
sentry_sdk.init(dsn=str(settings.SENTRY_DSN))
|
2019-02-09 19:42:36 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@celery_app.task(acks_late=True)
|
2020-04-20 19:03:13 +02:00
|
|
|
def test_celery(word: str) -> str:
|
2019-02-09 19:42:36 +04:00
|
|
|
return f"test task return {word}"
|