Skip to content

Commit

Permalink
disable output watcher in READ ONLY mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed May 10, 2023
1 parent bf29be6 commit 76b118e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,15 @@ async def progress_create_containers(
dynamic_sidecar_endpoint, compose_spec, progress_create_containers
)

# NOTE: only if service was NOT started in READ ONLY mode enable
# the outputs watcher
# 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 76b118e

Please sign in to comment.