felicity-lims/felicity/worker.py

11 lines
222 B
Python
Raw Normal View History

2023-04-10 20:23:31 +08:00
from core.celery_app import celery_app
2023-03-19 23:21:32 +08:00
2022-11-07 15:20:01 +08:00
# from raven import Client
2022-11-07 15:20:01 +08:00
# client_sentry = Client(settings.SENTRY_DSN)
@celery_app.task(acks_late=True)
def test_celery(word: str) -> str:
return f"test task return {word}"