🎉 First commit, from couchbase generator, basic changes
not tested / updated yet
This commit is contained in:
19
{{cookiecutter.project_slug}}/backend/app/app/worker.py
Normal file
19
{{cookiecutter.project_slug}}/backend/app/app/worker.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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}"
|
Reference in New Issue
Block a user