Skip to content

Commit abe2f10

Browse files
committed
fix: minor adjustments
1 parent 0d96eca commit abe2f10

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

celery.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
2-
celery --app=editgroups.celery:app worker -B -l INFO
2+
celery --app=editgroups.celery:app worker --concurrency=1 --max-memory-per-child=50000 -B -l INFO
33

editgroups/settings/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@
220220
CELERY_BROKER_URL = BROKER_URL
221221
# We also use Redis as result backend.
222222
CELERY_RESULT_BACKEND = BROKER_URL
223-
CELERY_BROKER_TRANSPORT_OPTIONS = {'global_keyprefix': REDIS_KEY_PREFIX}
224223

225224
CELERY_ACCEPT_CONTENT = ['pickle', 'json', 'msgpack', 'yaml']
226225
CELERY_IMPORTS = ['revert.tasks', 'tagging.tasks' ]

restart_celery.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/bin/bash
22
export GOMAXPROCS=1
3-
kubectl delete deployment editgroups.celery.sh ; kubectl create -f /data/project/editgroups/www/python/src/deployment/celery.yaml && kubectl get pods
3+
kubectl delete deployment editgroups.celery.sh ;
4+
echo "Waiting for Celery to stop";
5+
sleep 45 ;
6+
kubectl create -f /data/project/editgroups/www/python/src/deployment/celery.yaml && kubectl get pods

tasks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ else
1515
fi;
1616
echo "Starting celery"
1717
export C_FORCE_ROOT=True
18-
/data/project/editgroups/www/python/venv/bin/python3 /data/project/editgroups/www/python/venv/bin/celery --app=editgroups.celery:app worker -l INFO -B
18+
/data/project/editgroups/www/python/venv/bin/python3 /data/project/editgroups/www/python/venv/bin/celery --app=editgroups.celery:app worker -l INFO -B --concurrency=3 --max-memory-per-child=50000
1919
echo $?
2020
echo "Celery done"
2121

0 commit comments

Comments
 (0)