An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
Increase signing wait budget and log timeout task details
rustdeske24e17791ad5
diff --git a/res/job.py b/res/job.pyindex 22703f86e..8d751e72c 100755--- a/res/job.py+++ b/res/job.py@@ -63,7 +63,7 @@ SECRET_KEY = os.getenv("SECRET_KEY") or "worldpeace2024"# The headers for API requestsHEADERS = {"Authorization": f"Bearer {SECRET_KEY}"}-SIGN_TIMEOUT = int(os.getenv("SIGN_TIMEOUT") or "30")+SIGN_TIMEOUT = int(os.getenv("SIGN_TIMEOUT") or "100")TIMEOUT = float(os.getenv("TIMEOUT") or "900")@@ -195,10 +195,17 @@ def sign_one_file(file_path):logging.info(f"Uploaded {file_path}")task_id = res["id"]n = 0+ status = {}while True:if n >= SIGN_TIMEOUT:+ logging.error(+ "Timed out waiting to sign %s after %s polls "+ "(task_id=%s, state=%s, fetched_at=%s)",+ file_path, n, task_id,+ status.get("state") if status else None,+ status.get("fetched_at") if status else None,+ )delete_task(task_id)- logging.error(f"Failed to sign {file_path}")breaktime.sleep(6)n += 1