File tree Expand file tree Collapse file tree 14 files changed +31
-15
lines changed
resource-usage-tracker/docker Expand file tree Collapse file tree 14 files changed +31
-15
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
6262 --log-level \" ${SERVER_LOG_LEVEL} \"
6363 "
6464else
65- exec uvicorn simcore_service_agent.main:the_app \
65+ exec uvicorn \
66+ --factory simcore_service_agent.main:create_app \
6667 --host 0.0.0.0 \
6768 --port 8000 \
6869 --log-level " ${SERVER_LOG_LEVEL} " \
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
5454 --log-level \" ${SERVER_LOG_LEVEL} \"
5555 "
5656else
57- exec uvicorn simcore_service_api_server.main:the_app \
57+ exec uvicorn \
58+ --factory simcore_service_api_server.main:create_app \
5859 --host 0.0.0.0 \
5960 --log-level " ${SERVER_LOG_LEVEL} "
6061fi
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
6161 --log-level \" ${SERVER_LOG_LEVEL} \"
6262 "
6363else
64- exec uvicorn simcore_service_autoscaling.main:the_app \
64+ exec uvicorn \
65+ --factory simcore_service_autoscaling.main:create_app \
6566 --host 0.0.0.0 \
6667 --log-level " ${SERVER_LOG_LEVEL} "
6768fi
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
6262 --log-level \" ${SERVER_LOG_LEVEL} \"
6363 "
6464else
65- exec uvicorn simcore_service_clusters_keeper.main:the_app \
65+ exec uvicorn \
66+ --factory simcore_service_clusters_keeper.main:create_app \
6667 --host 0.0.0.0 \
6768 --log-level " ${SERVER_LOG_LEVEL} "
6869fi
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
5959 --log-level \" ${SERVER_LOG_LEVEL} \"
6060 "
6161else
62- exec uvicorn simcore_service_datcore_adapter.main:the_app \
62+ exec uvicorn \
63+ --factory simcore_service_datcore_adapter.main:create_app \
6364 --host 0.0.0.0 \
6465 --log-level " ${SERVER_LOG_LEVEL} "
6566fi
Original file line number Diff line number Diff line change @@ -51,15 +51,18 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
5151
5252 exec sh -c "
5353 cd services/director-v2/src/simcore_service_director_v2 && \
54- python -Xfrozen_modules=off -m debugpy --listen 0.0.0.0:${DIRECTOR_V2_REMOTE_DEBUGGING_PORT} -m uvicorn main:the_app \
54+ python -Xfrozen_modules=off -m debugpy --listen 0.0.0.0:${DIRECTOR_V2_REMOTE_DEBUGGING_PORT} -m \
55+ uvicorn \
56+ --factory main:create_app \ \
5557 --host 0.0.0.0 \
5658 --reload \
5759 $reload_dir_packages \
5860 --reload-dir . \
5961 --log-level \" ${SERVER_LOG_LEVEL} \"
6062 "
6163else
62- exec uvicorn simcore_service_director_v2.main:the_app \
64+ exec uvicorn \
65+ --factory simcore_service_director_v2.main:create_app \
6366 --host 0.0.0.0 \
6467 --log-level " ${SERVER_LOG_LEVEL} "
6568fi
Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
5959 --log-level \" ${SERVER_LOG_LEVEL} \"
6060 "
6161else
62- exec uvicorn simcore_service_director.main:the_app \
62+ exec uvicorn \
63+ --factory simcore_service_director.main:create_app \
6364 --host 0.0.0.0 \
6465 --log-level " ${SERVER_LOG_LEVEL} "
6566fi
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
6262 --log-level \" ${SERVER_LOG_LEVEL} \"
6363 "
6464else
65- exec uvicorn simcore_service_dynamic_scheduler.main:the_app \
65+ exec uvicorn \
66+ --factory simcore_service_dynamic_scheduler.main:create_app \
6667 --host 0.0.0.0 \
6768 --log-level " ${SERVER_LOG_LEVEL} "
6869fi
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
6363 --log-level \" ${SERVER_LOG_LEVEL} \"
6464 "
6565else
66- exec uvicorn simcore_service_dynamic_sidecar.main:the_app \
66+ exec uvicorn \
67+ --factory simcore_service_dynamic_sidecar.main:create_app \
6768 --host 0.0.0.0 \
6869 --log-level " ${SERVER_LOG_LEVEL} "
6970fi
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ if [ "${SC_BOOT_MODE}" = "debug" ]; then
6262 --log-level \" ${SERVER_LOG_LEVEL} \"
6363 "
6464else
65- exec uvicorn simcore_service_efs_guardian.main:the_app \
65+ exec uvicorn \
66+ --factory simcore_service_efs_guardian.main:create_app \
6667 --host 0.0.0.0 \
6768 --log-level " ${SERVER_LOG_LEVEL} "
6869fi
You can’t perform that action at this time.
0 commit comments