Skip to content

Commit d2e2f7d

Browse files
committed
Switch celery to thread runners for dev for the Mac life
1 parent 49cf302 commit d2e2f7d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# standalone install method
22
DOCKER_COMPOSE ?= docker-compose
3+
CELERY = cd contentcuration/ && celery -A contentcuration worker -l info --concurrency=3 --task-events
34

45
# support new plugin installation for docker-compose
56
ifeq (, $(shell command -v docker-compose 2>/dev/null))
@@ -16,7 +17,7 @@ altprodserver: collectstatic compilemessages
1617
cd contentcuration/ && gunicorn contentcuration.wsgi:application --timeout=4000 --error-logfile=/var/log/gunicorn-error.log --workers=${NUM_PROCS} --threads=${NUM_THREADS} --bind=0.0.0.0:8081 --pid=/tmp/contentcuration.pid --log-level=debug || sleep infinity
1718

1819
prodceleryworkers:
19-
cd contentcuration/ && celery -A contentcuration worker -l info --concurrency=3 --task-events
20+
$(CELERY)
2021

2122
collectstatic:
2223
python contentcuration/manage.py collectstatic --noinput
@@ -147,7 +148,7 @@ purge-postgres: .docker/pgpass
147148
destroy-and-recreate-database: purge-postgres setup
148149

149150
devceleryworkers:
150-
$(MAKE) -e DJANGO_SETTINGS_MODULE=contentcuration.dev_settings prodceleryworkers
151+
DJANGO_SETTINGS_MODULE=contentcuration.dev_settings $(CELERY) --pool=threads
151152

152153
run-services:
153154
$(MAKE) -j 2 dcservicesup devceleryworkers

0 commit comments

Comments
 (0)