okfn-brasil / jarbas

🎩 API for information and suspicions about reimbursements by Brazilian congresspeople
https://jarbas.serenata.ai/
296 stars 61 forks source link

The refactored docker image broke celery? #289

Closed giovanisleite closed 6 years ago

giovanisleite commented 6 years ago

Hey folks,

I am having problems to load the sample data

image

The #285 introduced a new api to docker and seems that all commands are preceded by python manage.py, but that was supposed to happen on tasks too? Looks like tasks are trying to use the command celery worker --app jarbas and getting python manage.py celery worker --app jarbas.

I was able to use the celery workers/tasks, just running docker-compose exec -d tasks celery worker --app jarbas

Am I doing something wrong? Thanks.

cuducos commented 6 years ago

Hum… I hope it makes sense. The ENTRYPOINT suggested by @caduvieira might have killed Celery and the Gunicorn used for the production setup.

@anaschwendler and @caduvieira: a quick fix is feasible in the next few hours or should I completely revert the merge as a temporary fix?

caduvieira commented 6 years ago

I will look into it now

cuducos commented 6 years ago

I will look into it now

Many many thanks. I'm online, available fo pairing. Just drop a line if I can be of any help.

anaschwendler commented 6 years ago

Many thanks @caduvieira !