mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Added check to shutdown hook (#6402)
This commit is contained in:
parent
b468150f2a
commit
318c811817
@ -66,7 +66,7 @@ class DockerRuntime(ActionExecutionClient):
|
||||
headless_mode: bool = True,
|
||||
):
|
||||
global _atexit_registered
|
||||
if not _atexit_registered:
|
||||
if not _atexit_registered and not config.sandbox.keep_runtime_alive:
|
||||
_atexit_registered = True
|
||||
atexit.register(remove_all_runtime_containers)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user