
* Use Pydantic BaseSettings for config settings * Update fastapi dep to >=0.47.0 and email_validator to email-validator * Fix deprecation warning for Pydantic >=1.0 * Properly support old-format comma separated strings for BACKEND_CORS_ORIGINS Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
12 lines
252 B
Python
12 lines
252 B
Python
from raven import Client
|
|
|
|
from app.core.config import settings
|
|
from app.core.celery_app import celery_app
|
|
|
|
client_sentry = Client(settings.SENTRY_DSN)
|
|
|
|
|
|
@celery_app.task(acks_late=True)
|
|
def test_celery(word: str):
|
|
return f"test task return {word}"
|