Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: Cleanups #273

Merged
merged 1 commit into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/includes/worker-breakdown.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Each fixture is responsible for a different layer of the initialization procedur

default_worker_container = container(
image="{celery_base_worker_image.id}",
ports=fxtr("default_worker_ports"),
environment=fxtr("default_worker_env"),
network="{default_pytest_celery_network.name}",
volumes={"{default_worker_volume.name}": DEFAULT_WORKER_VOLUME},
Expand Down Expand Up @@ -77,7 +78,7 @@ to provide the worker with the broker and result backend configurations accordin
Network
#######

The worker will use the default session network that will be created for each test
The worker will use the default network that will be created for each test
case to allow the worker component to communicate with the other components.

The network isolation allows multiple setups to run in parallel without interfering with each other.
Expand Down Expand Up @@ -128,6 +129,10 @@ code and configuration.
},
},

.. tip::

When :ref:`vscode`, the bind value is what should be set for the ``remoteRoot`` in the ``launch.json`` configuration.

Wrapper Class
#############

Expand Down
2 changes: 2 additions & 0 deletions tests/integration/api/custom_setup/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def worker_queue(cls) -> str:

celery4_worker_container = container(
image="{celery4_worker_image.id}",
ports=fxtr("default_worker_ports"),
environment=fxtr("default_worker_env"),
network="{default_pytest_celery_network.name}",
volumes={"{default_worker_volume.name}": DEFAULT_WORKER_VOLUME},
Expand Down Expand Up @@ -105,6 +106,7 @@ def default_worker_container_session_cls() -> type[CeleryWorkerContainer]:

default_worker_container = container(
image="{celery5_worker_image.id}",
ports=fxtr("default_worker_ports"),
environment=fxtr("default_worker_env"),
network="{default_pytest_celery_network.name}",
volumes={"{default_worker_volume.name}": DEFAULT_WORKER_VOLUME},
Expand Down