-
Notifications
You must be signed in to change notification settings - Fork 24
Way to run tasks #1
Comments
You can mount your tasks.py into the container in the users home directory (
Not sure how you would notice new tasks.. any change to the file on the host would be seen by the container, but I don't think it will reload. Still, it's quick to restart the container... |
This needs to be documented. How can this be used with django for example? |
+1 for some documentation 😇 (what we've got is impossibly sparse right now: https://github.com/docker-library/docs/blob/master/celery/content.md) |
that's tricky. i tried with docker-compose but i can't find a way. has anyone been able to run the celery in docker and use the integration with django?? |
Using this image seems ridiculous. If you have an application container, as you usually have with Django, you need all dependencies (things you import in That's why other projects (e.g. cookiecutter-django) reuse the application container for Celery, and only run a different command ( |
Indeed, Sentry includes a way to run Celery directly as well.
Pondering whether this image actually makes sense to simply deprecate,
similar to the deprecation of the django image (and for similar reasons).
|
I've opened #12 to discuss this image's deprecation. In the meantime, I'm going to close this issue since I think the original question is as solved as it's going to get. 👍 |
Agreed, it's not going to be much more difficult to replace this image with a build on a standard Python image with celery added to pip's Actually, doing so in the first place would have saved me two hours yesterday: This celery docker image ignores the broker url when provided from inside python like so Anyway I'm rambling again, I came here to comment about this parameters forcing but since the whole thing is deprecated I reckon there's no need. |
Hi, I don't know how to run tasks by using this Dockerfile.
tasks.py
file to register tasks to run?If you know, please tell me. 😃
The text was updated successfully, but these errors were encountered: