From 541da694018e55181cd3894fa09b0d61f16ede32 Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 11 Mar 2024 08:53:36 +0100 Subject: [PATCH] specific config for docker to have baked in the image --- celery_worker_docker.py | 6 ++++++ entrypoint_celery.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 celery_worker_docker.py 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