mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 12:29:42 +00:00
7f8bfc8faa
not tested / updated yet
20 lines
414 B
Python
20 lines
414 B
Python
# Import standard library modules
|
|
|
|
|
|
# Import installed packages
|
|
from raven import Client
|
|
|
|
from app.core.celery_app import celery_app
|
|
|
|
# Import app code
|
|
# Absolute imports for Hydrogen (Jupyter Kernel) compatibility
|
|
from app.core.config import SENTRY_DSN
|
|
|
|
client_sentry = Client(SENTRY_DSN)
|
|
|
|
|
|
@celery_app.task(acks_late=True)
|
|
def test_celery(word: str):
|
|
print("test task")
|
|
return f"test task return {word}"
|