From 54dffa85956e2a0f9ad996473b2cf08b68daed97 Mon Sep 17 00:00:00 2001 From: Darrel Pol Date: Thu, 12 Sep 2024 22:06:04 -0500 Subject: [PATCH] sleeping before exiting --- .github/workflows/on_merge_to_master.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on_merge_to_master.yaml b/.github/workflows/on_merge_to_master.yaml index cf9ff544d..b7e3d0595 100644 --- a/.github/workflows/on_merge_to_master.yaml +++ b/.github/workflows/on_merge_to_master.yaml @@ -71,11 +71,14 @@ jobs: # Return to the main project directory cd .. - # Run the application in the background using nohup - nohup python launch.py --nowebui --listen --api > nohup.out 2>&1 & + # Start the application with nohup and delay + nohup python launch.py --nowebui --listen --api & # Wait for 60 seconds to allow the application to fully start sleep 60 + + # Redirect nohup output + > nohup.out 2>&1 # Detach from the SSH session to prevent hanging exit