fix: docker hangs
Local Docker Build (Dev) / build-dev (push) Successful in 5s

This commit is contained in:
2025-10-25 12:09:23 -04:00
parent 1314ee3e70
commit ab48d485b8
2 changed files with 23 additions and 1 deletions
+12
View File
@@ -146,6 +146,18 @@ def signal_handler(signum, frame):
_log("WARNING", f"Error closing database: {e}")
_log("INFO", "Graceful shutdown complete")
# Force exit after 2 seconds if graceful shutdown doesn't work
import threading
def force_exit():
import time
time.sleep(2)
_log("WARNING", "Force exiting after timeout")
os._exit(0)
force_thread = threading.Thread(target=force_exit, daemon=True)
force_thread.start()
sys.exit(0)