v1.0.99: debug logging for save_run — will show why it fails

This commit is contained in:
2026-07-28 10:42:43 +04:00
parent 10ec617c74
commit 3dbddda858
3 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -355,8 +355,10 @@ def _finish_op(client, op_uid, instance_uid, svc_id, display_name, op_name, svc_
params or {},
op.get("stages", []),
current_app.config.get("VERSION", ""))
except Exception:
pass # не ронять фоновый поток из-за БД
except Exception as e:
import traceback
print(f"[DB] save_run FAILED: {e}", flush=True)
traceback.print_exc()
return
time.sleep(5)
except Exception: