Skip to content

Commit abc489a

Browse files
authored
Hotfix: Cleanups (#273)
1 parent 3c4e2f0 commit abc489a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/includes/worker-breakdown.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Each fixture is responsible for a different layer of the initialization procedur
3535

3636
default_worker_container = container(
3737
image="{celery_base_worker_image.id}",
38+
ports=fxtr("default_worker_ports"),
3839
environment=fxtr("default_worker_env"),
3940
network="{default_pytest_celery_network.name}",
4041
volumes={"{default_worker_volume.name}": DEFAULT_WORKER_VOLUME},
@@ -77,7 +78,7 @@ to provide the worker with the broker and result backend configurations accordin
7778
Network
7879
#######
7980

80-
The worker will use the default session network that will be created for each test
81+
The worker will use the default network that will be created for each test
8182
case to allow the worker component to communicate with the other components.
8283

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

132+
.. tip::
133+
134+
When :ref:`vscode`, the bind value is what should be set for the ``remoteRoot`` in the ``launch.json`` configuration.
135+
131136
Wrapper Class
132137
#############
133138

tests/integration/api/custom_setup/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def worker_queue(cls) -> str:
4747

4848
celery4_worker_container = container(
4949
image="{celery4_worker_image.id}",
50+
ports=fxtr("default_worker_ports"),
5051
environment=fxtr("default_worker_env"),
5152
network="{default_pytest_celery_network.name}",
5253
volumes={"{default_worker_volume.name}": DEFAULT_WORKER_VOLUME},
@@ -105,6 +106,7 @@ def default_worker_container_session_cls() -> type[CeleryWorkerContainer]:
105106

106107
default_worker_container = container(
107108
image="{celery5_worker_image.id}",
109+
ports=fxtr("default_worker_ports"),
108110
environment=fxtr("default_worker_env"),
109111
network="{default_pytest_celery_network.name}",
110112
volumes={"{default_worker_volume.name}": DEFAULT_WORKER_VOLUME},

0 commit comments

Comments
 (0)