Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-douglass committed Sep 16, 2021
1 parent 6dd0870 commit 8ff7f2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assemblyline_core/scaler/scaler_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,14 @@ def prepare_container(docker_config: DockerConfig) -> DockerConfig:
dependency_config[_n] = dependency
dependency_blobs[_n] = str(dependency)

if service.enabled and (stage == ServiceStage.Off or name not in self.profiles):
if service.enabled and stage == ServiceStage.Off:
# Move to the next service stage (do this first because the container we are starting may care)
if service.update_config and service.update_config.wait_for_update:
self._service_stage_hash.set(name, ServiceStage.Update)
stage = ServiceStage.Update
else:
self._service_stage_hash.set(name, ServiceStage.Running)
stage = ServiceStage.Running

# Enable this service's dependencies before trying to launch the service containers
self.controller.prepare_network(service.name, service.docker_config.allow_internet_access)
Expand Down

0 comments on commit 8ff7f2b

Please sign in to comment.