Skip to content

Commit

Permalink
Use SIGTERM instead of SIGKILL on CeleryTestNode.restart(force=True) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus authored Dec 3, 2023
1 parent 42d6eae commit c9c0de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pytest_celery/api/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def kill(self, signal: str | int = "SIGKILL", reload_container: bool = True) ->

def restart(self, reload_container: bool = True, force: bool = False) -> None:
if force:
self.kill(reload_container=reload_container)
self.kill(signal="SIGTERM", reload_container=reload_container)
self.container.restart(timeout=CONTAINER_TIMEOUT)
if reload_container:
self.container.reload()
Expand Down

0 comments on commit c9c0de2

Please sign in to comment.