mirror of
https://github.com/RYDE-WORK/full-stack-fastapi-template.git
synced 2026-01-29 02:03:25 +08:00
13 lines
264 B
Python
13 lines
264 B
Python
from raven import Client
|
|
|
|
from app.core import config
|
|
from app.core.celery_app import celery_app
|
|
|
|
client_sentry = Client(config.SENTRY_DSN)
|
|
|
|
|
|
@celery_app.task(acks_late=True)
|
|
def test_celery(word: str):
|
|
print("test task")
|
|
return f"test task return {word}"
|