Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions services/storage/docker/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ SERVER_LOG_LEVEL=$(echo "${APP_LOG_LEVEL}" | tr '[:upper:]' '[:lower:]')
echo "$INFO" "Log-level app/server: $APP_LOG_LEVEL/$SERVER_LOG_LEVEL"

if [ "${STORAGE_WORKER_MODE}" = "true" ]; then
NOW=$(date +%s)

if [ "${SC_BOOT_MODE}" = "debug" ]; then
exec watchmedo auto-restart \
--directory /devel/packages \
Expand All @@ -59,13 +61,15 @@ if [ "${STORAGE_WORKER_MODE}" = "true" ]; then
worker --pool=threads \
--loglevel="${SERVER_LOG_LEVEL}" \
--concurrency="${CELERY_CONCURRENCY}" \
--hostname=%h-"${NOW}" \
--queues="${CELERY_QUEUES:-default}"
else
exec celery \
--app=simcore_service_storage.modules.celery.worker_main:app \
worker --pool=threads \
--loglevel="${SERVER_LOG_LEVEL}" \
--concurrency="${CELERY_CONCURRENCY}" \
--hostname=%h-"${NOW}" \
--queues="${CELERY_QUEUES:-default}"
fi
else
Expand Down
Loading