mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
Prune containers to avoid conflict.
This commit is contained in:
parent
efde2563d1
commit
9626f8c743
@ -436,6 +436,7 @@ def launcher(event_loop):
|
|||||||
container = client.containers.get(container_name)
|
container = client.containers.get(container_name)
|
||||||
container.stop()
|
container.stop()
|
||||||
container.wait()
|
container.wait()
|
||||||
|
client.containers.prune()
|
||||||
except NotFound:
|
except NotFound:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -488,6 +489,7 @@ def launcher(event_loop):
|
|||||||
try:
|
try:
|
||||||
container.stop()
|
container.stop()
|
||||||
container.wait()
|
container.wait()
|
||||||
|
client.containers.prune()
|
||||||
except NotFound:
|
except NotFound:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user