diff --git a/celery_worker_docker.py b/celery_worker_docker.py new file mode 100644 index 00000000..db42432d --- /dev/null +++ b/celery_worker_docker.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +import os +from app import celery, create_app + +app = create_app() +app.app_context().push() diff --git a/entrypoint_celery.sh b/entrypoint_celery.sh index 4e9b2fc0..e73bcc99 100644 --- a/entrypoint_celery.sh +++ b/entrypoint_celery.sh @@ -1,4 +1,4 @@ #!/bin/sh -celery -A celery_worker.celery worker --autoscale=5,1 +celery -A celery_worker_docker.celery worker --autoscale=5,1