MCPcopy
hub / github.com/celery/celery / test_shutdown_exit_with_zero

Method test_shutdown_exit_with_zero

t/smoke/tests/test_control.py:14–18  ·  view source on GitHub ↗
(self, celery_setup: CeleryTestSetup)

Source from the content-addressed store, hash-verified

12 )
13
14 def test_shutdown_exit_with_zero(self, celery_setup: CeleryTestSetup):
15 celery_setup.app.control.shutdown(destination=[celery_setup.worker.hostname()])
16 while celery_setup.worker.container.status != "exited":
17 celery_setup.worker.container.reload()
18 assert celery_setup.worker.container.attrs["State"]["ExitCode"] == 0

Callers

nothing calls this directly

Calls 3

hostnameMethod · 0.80
reloadMethod · 0.80
shutdownMethod · 0.45

Tested by

no test coverage detected