language-learning-app/api/worker/main.py
wilson fecb5839ea
Some checks failed
/ test (push) Has been cancelled
feats: use Procrastinate for persistant jobs; try using Gemini for text
generation
2026-05-27 18:45:52 +01:00

8 lines
No EOL
336 B
Python

# Importing the tasks package registers all tasks with the procrastinate app.
from app.tasks import procrastinate_app as app
if __name__ == "__main__":
print("Starting worker...")
app.run_worker(queues=["adventure_pipeline", "default"], name="worker-1")
else:
print("not starting worker, since __name__ is not '__main__'")