Skip to content
Snippets Groups Projects
Commit 979bfb9b authored by David Schmitz's avatar David Schmitz
Browse files

celery lock file cleanup actions at startup: add ./flowspy/run_celery_preactions to runfod*.sh

parent 6da8f579
Branches
Tags
No related merge requests found
...@@ -92,6 +92,7 @@ echo "starting redis" 1>&2 ...@@ -92,6 +92,7 @@ echo "starting redis" 1>&2
/usr/bin/redis-server & /usr/bin/redis-server &
echo "Starting FoD celeryd in background" 1>&2 echo "Starting FoD celeryd in background" 1>&2
"$fod_dir/flowspy/run_celery_preactions"
#celery worker -A flowspy -B --concurrency=2 --detach -l debug -f celery.log #celery worker -A flowspy -B --concurrency=2 --detach -l debug -f celery.log
celery worker -A flowspy -B --concurrency=2 --detach -l info -f celery.log celery worker -A flowspy -B --concurrency=2 --detach -l info -f celery.log
......
...@@ -96,6 +96,7 @@ echo "starting redis" 1>&2 ...@@ -96,6 +96,7 @@ echo "starting redis" 1>&2
/usr/bin/redis-server & /usr/bin/redis-server &
echo "Starting FoD celeryd in background" 1>&2 echo "Starting FoD celeryd in background" 1>&2
"$fod_dir/flowspy/run_celery_preactions"
#celery -A flowspy worker -B --concurrency=2 --detach -l debug -f celery.log #celery -A flowspy worker -B --concurrency=2 --detach -l debug -f celery.log
celery -A flowspy worker -B --concurrency=2 --detach -l info -f celery.log celery -A flowspy worker -B --concurrency=2 --detach -l info -f celery.log
......
...@@ -143,6 +143,8 @@ chown fod "$fod_dir" "$fod_dir/log" "$fod_dir/logs" "$fod_dir/log/"* "$fod_dir/l ...@@ -143,6 +143,8 @@ chown fod "$fod_dir" "$fod_dir/log" "$fod_dir/logs" "$fod_dir/log/"* "$fod_dir/l
## ##
"$fod_dir/flowspy/run_celery_preactions"
mkdir -p /var/run/supervisor mkdir -p /var/run/supervisor
exec /usr/bin/supervisord -n -c /etc/supervisord.conf exec /usr/bin/supervisord -n -c /etc/supervisord.conf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment