diff --git a/app.py b/app.py index 94b5d49..f9c49c9 100644 --- a/app.py +++ b/app.py @@ -121,6 +121,4 @@ def healthcheck() -> responses.PlainTextResponse: return responses.PlainTextResponse(text, status_code=status_code) - - -session.start_session_cleanup_thread() \ No newline at end of file +session.start_session_cleanup_thread() diff --git a/check_config_service b/check_config_service deleted file mode 100644 index 00bd9d4..0000000 --- a/check_config_service +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -CONFIG_EXISTS=0 -if [ -n "$(docker ps -q -f name=dev-setup_refinery-config_1)" ] -then - if [ "$( docker container inspect -f '{{.State.Status}}' dev-setup_refinery-config_1 )" == "running" ]; - then - CONFIG_EXISTS=1 - fi -elif [ -n "$(docker ps -q -f name=dev-setup-refinery-config-1)" ] -then - if [ "$( docker container inspect -f '{{.State.Status}}' dev-setup-refinery-config-1 )" == "running" ]; - then - CONFIG_EXISTS=1 - fi -else - if [ -n "$(docker ps -q -f name=refinery-config)" ]; - then - if [ "$( docker container inspect -f '{{.State.Status}}' refinery-config )" == "running" ]; - then - CONFIG_EXISTS=1 - fi - fi -fi -if [ $CONFIG_EXISTS -eq 0 ] -then - echo "refinery-config couldn't be found - exit" - exit 1 -else - echo "refinery-config found -> proceeding" -fi - diff --git a/handler/config_handler.py b/handler/config_handler.py index dce1a88..6587b7b 100644 --- a/handler/config_handler.py +++ b/handler/config_handler.py @@ -6,7 +6,7 @@ __config = None # meant as a const value since env variables will be removed at some point -REQUEST_URL = "http://refinery-config:80/full_config" +REQUEST_URL = "http://refinery-gateway:80/full_config" def __get_config() -> Dict[str, Any]: diff --git a/start b/start index 2314697..6cb8ee1 100755 --- a/start +++ b/start @@ -1,9 +1,6 @@ #!/bin/bash trap "echo -ne '\nstopping container...' && docker stop refinery-tokenizer > /dev/null 2>&1 && echo -ne '\t\t [done]\n'" EXIT - -source check_config_service - HIDE_BUILD=0 while getopts :s flag do diff --git a/submodules/model b/submodules/model index 49ea175..2019057 160000 --- a/submodules/model +++ b/submodules/model @@ -1 +1 @@ -Subproject commit 49ea175bb3cd429ddc911996e0fe00e6763beefe +Subproject commit 201905750781aefb9dcca53a5389144e73edd775