mirror of
https://github.com/trycua/computer.git
synced 2025-12-31 02:19:58 -06:00
Disable watchdog on windows cloud instances
This commit is contained in:
@@ -72,7 +72,7 @@ def main() -> None:
|
||||
|
||||
# Check if watchdog should be enabled
|
||||
container_name = os.environ.get("CONTAINER_NAME")
|
||||
enable_watchdog = args.watchdog or bool(container_name)
|
||||
enable_watchdog = (args.watchdog or bool(container_name)) and not sys.platform.startswith("win")
|
||||
|
||||
if container_name:
|
||||
logger.info(f"Container environment detected (CONTAINER_NAME={container_name}), enabling watchdog")
|
||||
|
||||
Reference in New Issue
Block a user