File tree 8 files changed +10
-7
lines changed
8 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
nohup celery -A geonode.celery_app:app beat -l DEBUG -f /var/log/celery.log & > /dev/null &
3
- nohup celery -A geonode.celery_app:app worker -B -E --statedb=worker.state -s celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h -f /var/log/celery.log & > /dev/null &
3
+ nohup celery -A geonode.celery_app:app worker --without-gossip --without-mingle -Ofair - B -E --statedb=worker.state -s celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h -f /var/log/celery.log & > /dev/null &
4
4
nohup celery -A geonode.celery_app:app flower --auto_refresh=True --debug=False --broker=${BROKER_URL} --basic_auth=${ADMIN_USERNAME} :${ADMIN_PASSWORD} --address=0.0.0.0 --port=5555 & > /dev/null &
Original file line number Diff line number Diff line change 2
2
. ./.env_dev
3
3
set +a
4
4
5
- celery -A geonode.celery_app:app worker -B -E --statedb=worker.state -s celerybeat-schedule --loglevel=DEBUG --concurrency=10 -n worker1@%h
5
+ celery -A geonode.celery_app:app worker --without-gossip --without-mingle -Ofair - B -E --statedb=worker.state -s celerybeat-schedule --loglevel=DEBUG --concurrency=10 -n worker1@%h
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ services:
43
43
environment :
44
44
- IS_CELERY=True
45
45
entrypoint : ["/usr/src/geonode/entrypoint.sh"]
46
- command : " celery -A geonode.celery_app:app worker -B -E --statedb=/mnt/volumes/statics/worker.state -s /mnt/volumes/statics/celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h -f /var/log/celery.log"
46
+ command : " celery -A geonode.celery_app:app worker --without-gossip --without-mingle -Ofair - B -E --statedb=/mnt/volumes/statics/worker.state -s /mnt/volumes/statics/celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h -f /var/log/celery.log"
47
47
48
48
# Nginx is serving django static and media files and proxies to django and geonode
49
49
geonode :
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ services:
43
43
environment :
44
44
- IS_CELERY=True
45
45
entrypoint : ["/usr/src/geonode/entrypoint.sh"]
46
- command : " celery -A geonode.celery_app:app worker -B -E --statedb=/mnt/volumes/statics/worker.state -s /mnt/volumes/statics/celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h -f /var/log/celery.log"
46
+ command : " celery -A geonode.celery_app:app worker --without-gossip --without-mingle -Ofair - B -E --statedb=/mnt/volumes/statics/worker.state -s /mnt/volumes/statics/celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h -f /var/log/celery.log"
47
47
48
48
# Nginx is serving django static and media files and proxies to django and geonode
49
49
geonode :
Original file line number Diff line number Diff line change @@ -1745,6 +1745,9 @@ def get_geonode_catalogue_service():
1745
1745
# Allow to recover from any unknown crash.
1746
1746
CELERY_ACKS_LATE = ast .literal_eval (os .environ .get ('CELERY_ACKS_LATE' , 'True' ))
1747
1747
1748
+ # Add a ten-minutes timeout to all Celery tasks.
1749
+ CELERYD_TASK_SOFT_TIME_LIMIT = 600
1750
+
1748
1751
# Set this to False in order to run async
1749
1752
_EAGER_FLAG = 'False' if ASYNC_SIGNALS else 'True'
1750
1753
CELERY_TASK_ALWAYS_EAGER = ast .literal_eval (os .environ .get ('CELERY_TASK_ALWAYS_EAGER' , _EAGER_FLAG ))
Original file line number Diff line number Diff line change @@ -612,7 +612,7 @@ def start_django(options):
612
612
sh ('%s python -W ignore manage.py runserver %s %s' % (settings , bind , foreground ))
613
613
614
614
if 'django_celery_beat' not in INSTALLED_APPS :
615
- sh ("{} celery -A geonode.celery_app:app worker -B -E \
615
+ sh ("{} celery -A geonode.celery_app:app worker --without-gossip --without-mingle -Ofair - B -E \
616
616
--statedb=worker.state -s celerybeat-schedule --loglevel=DEBUG \
617
617
--concurrency=10 -n worker1@%h -f celery.log {}" .format ( # noqa
618
618
settings ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
18
18
command : " uwsgi --chdir=/spcgeonode --module=geonode.wsgi --socket=:8000 --http=127.0.0.1:8001 --processes=5 --py-autoreload=2"
19
19
celery :
20
20
<< : *default-common-django
21
- command : ' celery -A geonode.celery_app:app worker -B -E --statedb=worker.state -s celerybeat-schedule --loglevel=DEBUG --concurrency=10 -n worker1@%h'
21
+ command : ' celery -A geonode.celery_app:app worker --without-gossip --without-mingle -Ofair - B -E --statedb=worker.state -s celerybeat-schedule --loglevel=DEBUG --concurrency=10 -n worker1@%h'
22
22
23
23
nginx :
24
24
image : geonode/spcgeonode:nginx-3.1
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ services:
72
72
celery :
73
73
<< : *default-common-django
74
74
entrypoint : []
75
- command : ' celery -A geonode.celery_app:app worker -B -E --statedb=worker.state -s celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h'
75
+ command : ' celery -A geonode.celery_app:app worker --without-gossip --without-mingle -Ofair - B -E --statedb=worker.state -s celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h'
76
76
77
77
# Nginx is serving django static and media files and proxies to django and geonode
78
78
nginx :
You can’t perform that action at this time.
0 commit comments