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.stop()
|
||||
container.wait()
|
||||
client.containers.prune()
|
||||
except NotFound:
|
||||
pass
|
||||
|
||||
@ -488,6 +489,7 @@ def launcher(event_loop):
|
||||
try:
|
||||
container.stop()
|
||||
container.wait()
|
||||
client.containers.prune()
|
||||
except NotFound:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user