🚚 Refactor and simplify backend file structure (#609)
This commit is contained in:

committed by
GitHub

parent
a065f9c9e8
commit
73b2884057
11
src/backend/app/worker.py
Normal file
11
src/backend/app/worker.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from raven import Client
|
||||
|
||||
from app.core.celery_app import celery_app
|
||||
from app.core.config import settings
|
||||
|
||||
client_sentry = Client(settings.SENTRY_DSN)
|
||||
|
||||
|
||||
@celery_app.task(acks_late=True)
|
||||
def test_celery(word: str) -> str:
|
||||
return f"test task return {word}"
|
Reference in New Issue
Block a user