Skip to content

Commit 8e2ac13

Browse files
authored
[bugfix] fixes projects_api and sets larger pool to webserver (#1539)
* Fixes output update in projects_api * Max. size of psycopg2 pool to 14 at the webserver service (asyngpg does not accept 0 as maxsize)
1 parent c059114 commit 8e2ac13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/web/server/src/simcore_service_webserver/config/server-docker-prod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ db:
3232
host: ${POSTGRES_HOST}
3333
port: ${POSTGRES_PORT}
3434
minsize: 4
35-
maxsize: 4
35+
maxsize: 15
3636
resource_manager:
3737
enabled: True
3838
resource_deletion_timeout_seconds: ${WEBSERVER_RESOURCES_DELETION_TIMEOUT_SECONDS}

services/web/server/src/simcore_service_webserver/projects/projects_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ async def update_project_node_outputs(
289289
raise NodeNotFoundError(project_id, node_id)
290290

291291
if data:
292-
# NOTE: update outputs if necessary as the UI expects a
292+
# NOTE: update outputs (not required) if necessary as the UI expects a
293293
# dataset/label field that is missing
294-
outputs: Dict[str,Any] = project["workbench"][node_id]["outputs"]
294+
outputs: Dict[str,Any] = project["workbench"][node_id].setdefault("outputs", {})
295295
outputs.update(data)
296296

297297
for output_key in outputs.keys():

0 commit comments

Comments
 (0)