From 6de168d042db19ec6d24be524390a49212418f92 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Tue, 6 Feb 2024 18:30:58 +0100 Subject: [PATCH] use 'AYON_WEBSERVER_URL' env variable --- client/ayon_core/hosts/tvpaint/api/pipeline.py | 2 +- client/ayon_core/modules/timers_manager/timers_manager.py | 4 ++-- client/ayon_core/modules/webserver/webserver_module.py | 2 +- client/ayon_core/tools/stdout_broker/app.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/ayon_core/hosts/tvpaint/api/pipeline.py b/client/ayon_core/hosts/tvpaint/api/pipeline.py index 43df49badf..1360b423b3 100644 --- a/client/ayon_core/hosts/tvpaint/api/pipeline.py +++ b/client/ayon_core/hosts/tvpaint/api/pipeline.py @@ -205,7 +205,7 @@ class TVPaintHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost): return # Stop application timer. - webserver_url = os.environ.get("OPENPYPE_WEBSERVER_URL") + webserver_url = os.environ.get("AYON_WEBSERVER_URL") rest_api_url = "{}/timers_manager/stop_timer".format(webserver_url) requests.post(rest_api_url) diff --git a/client/ayon_core/modules/timers_manager/timers_manager.py b/client/ayon_core/modules/timers_manager/timers_manager.py index a37ec4dc43..daba0cead9 100644 --- a/client/ayon_core/modules/timers_manager/timers_manager.py +++ b/client/ayon_core/modules/timers_manager/timers_manager.py @@ -405,7 +405,7 @@ class TimersManager( passed. """ - webserver_url = os.environ.get("OPENPYPE_WEBSERVER_URL") + webserver_url = os.environ.get("AYON_WEBSERVER_URL") if not webserver_url: msg = "Couldn't find webserver url" if logger is not None: @@ -440,7 +440,7 @@ class TimersManager( logger (logging.Logger): Logger used for logging messages. """ - webserver_url = os.environ.get("OPENPYPE_WEBSERVER_URL") + webserver_url = os.environ.get("AYON_WEBSERVER_URL") if not webserver_url: msg = "Couldn't find webserver url" if logger is not None: diff --git a/client/ayon_core/modules/webserver/webserver_module.py b/client/ayon_core/modules/webserver/webserver_module.py index 4c487f50d2..ec143d0866 100644 --- a/client/ayon_core/modules/webserver/webserver_module.py +++ b/client/ayon_core/modules/webserver/webserver_module.py @@ -16,7 +16,7 @@ Running multiple servers in one process is not recommended and probably won't work as expected. It is because of few limitations connected to asyncio module. When module's `create_server_manager` is called it is also set environment -variable "OPENPYPE_WEBSERVER_URL". Which should lead to root access point +variable "AYON_WEBSERVER_URL". Which should lead to root access point of server. """ diff --git a/client/ayon_core/tools/stdout_broker/app.py b/client/ayon_core/tools/stdout_broker/app.py index 5f01b41fe5..15447b608b 100644 --- a/client/ayon_core/tools/stdout_broker/app.py +++ b/client/ayon_core/tools/stdout_broker/app.py @@ -86,7 +86,7 @@ class StdOutBroker: if not self._std_available: # not content to log return ws = websocket.WebSocket() - webserver_url = os.environ.get("OPENPYPE_WEBSERVER_URL") + webserver_url = os.environ.get("AYON_WEBSERVER_URL") if not webserver_url: print("Unknown webserver url, cannot connect to pass log")