Browse Source

[backend] Changing timer seconds to periodically update the recovery file

Prakash Ranade 2 months ago
parent
commit
d9393356df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/management/commands/rungunicornserver.py

+ 1 - 1
desktop/core/src/desktop/management/commands/rungunicornserver.py

@@ -111,7 +111,7 @@ def start_server(args, options):
     # Set up a timer to periodically update the recovery file
     def update_recovery_file():
         while True:
-            time.sleep(30)  # Update every 30 seconds
+            time.sleep(int(30 * 60))  # Update every 30 minutes
             try:
                 write_process_recovery_file(socket_path=LOG_LISTENER_SOCKET_PATH, pid_file=PID_FILE)
             except Exception as e: