Skip to content

Commit

Permalink
πŸ› No longer upload output ports when study is in read only mode (#4207)
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHK authored May 10, 2023
1 parent a7ab0fb commit 1562464
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,15 @@ async def progress_create_containers(
dynamic_sidecar_endpoint, compose_spec, progress_create_containers
)

await dynamic_sidecar_client.enable_service_outputs_watcher(
dynamic_sidecar_endpoint
)
# NOTE: when in READ ONLY mode disable the outputs watcher
if scheduler_data.dynamic_sidecar.service_removal_state.can_save:
await dynamic_sidecar_client.enable_service_outputs_watcher(
dynamic_sidecar_endpoint
)
else:
await dynamic_sidecar_client.disable_service_outputs_watcher(
dynamic_sidecar_endpoint
)

# Starts PROXY -----------------------------------------------
# The entrypoint container name was now computed
Expand Down

0 comments on commit 1562464

Please sign in to comment.