Skip to content

Commit

Permalink
feat(devservices): Remove healthcheck and multithreading for beta (#158)
Browse files Browse the repository at this point in the history
* remove healthcheck and multithreading for beta
  • Loading branch information
hubertdeng123 authored Nov 19, 2024
1 parent fc607ba commit 0d9bbe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 3 additions & 13 deletions devservices/commands/up.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

import concurrent.futures
import os
import subprocess
from argparse import _SubParsersAction
Expand Down Expand Up @@ -119,7 +118,7 @@ def _up(
current_env[
DEVSERVICES_DEPENDENCIES_CACHE_DIR_KEY
] = relative_local_dependency_directory
options = ["-d", "--wait"]
options = ["-d"]
docker_compose_commands = get_docker_compose_commands_to_run(
service=service,
remote_dependencies=remote_dependencies,
Expand All @@ -130,14 +129,5 @@ def _up(
mode_dependencies=mode_dependencies,
)

cmd_outputs = []

with concurrent.futures.ThreadPoolExecutor() as executor:
futures = [
executor.submit(
_bring_up_dependency, cmd, current_env, status, len(options)
)
for cmd in docker_compose_commands
]
for future in concurrent.futures.as_completed(futures):
cmd_outputs.append(future.result())
for cmd in docker_compose_commands:
_bring_up_dependency(cmd, current_env, status, len(options))
2 changes: 0 additions & 2 deletions tests/commands/test_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def test_up_simple(
"clickhouse",
"redis",
"-d",
"--wait",
],
check=True,
capture_output=True,
Expand Down Expand Up @@ -264,7 +263,6 @@ def test_up_mode_simple(
"up",
"redis",
"-d",
"--wait",
],
check=True,
capture_output=True,
Expand Down

0 comments on commit 0d9bbe7

Please sign in to comment.