Skip to content

Commit

Permalink
Fix the started services
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsmkn committed Aug 7, 2024
1 parent ec65f25 commit 785db01
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def local_grand_challenge() -> Generator[str, None, None]:
"-v",
f"{(Path(tmp_path) / 'scripts').absolute()}:/app/scripts:ro",
"--rm",
"celery_worker_evaluation",
"celery_worker",
"bash",
"-c",
(
Expand All @@ -109,7 +109,6 @@ def local_grand_challenge() -> Generator[str, None, None]:
"-d",
"http",
"celery_worker",
"celery_worker_evaluation",
],
cwd=tmp_path,
stderr=STDOUT,
Expand Down Expand Up @@ -179,9 +178,9 @@ def rewrite_docker_compose(content: bytes) -> bytes:

# Strip watchfiles command from celery
# as this is not included in the base container
command = spec["services"]["celery_worker_evaluation"]["command"]
command = spec["services"]["celery_worker"]["command"]
command = command.replace('watchfiles --filter python "', "")
command = command.replace('" /app', "")
spec["services"]["celery_worker_evaluation"]["command"] = command
spec["services"]["celery_worker"]["command"] = command

return yaml.safe_dump(spec).encode("utf-8")

0 comments on commit 785db01

Please sign in to comment.