tiangolo / full-stack

Full stack, modern web application generator. Using Flask, PostgreSQL DB, Docker, Swagger, automatic HTTPS and more.
MIT License
523 stars 81 forks source link

Request: more documentation for configuring/setting up tasks #15

Closed michaeltoohig closed 5 years ago

michaeltoohig commented 5 years ago

Specifically in development.

For example, I have added a simple task to worker.py. If I call the test_celery task I can see the response in the celeryworker logs; however, my new task does not run.

I have re-built the celery worker and read the worker.py code from within the running container so I know my new task is there, yet the task does not run when called.

I have added the task to celery_app.py where the task_routes are defined and added my new task to the main-queue like the original test task but still my test task does not run.

I am missing something somewhere?

tiangolo commented 5 years ago

I'm not sure, can you create a public repo so that I can take a look and see if I find the issue?

michaeltoohig commented 5 years ago

My mistake. I must have a configuration mistake some place. I tried adding a task in a clean copy of the project and it worked.

tiangolo commented 5 years ago

Sorry for the delay!

I'm glad you solved your problem. Should we close this issue now?

michaeltoohig commented 5 years ago

Yes thanks for your responses.