mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 09:39:53 +01:00
fix(runtime): allow supervised identity reads within startup deadline
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
fa9c3451a0
commit
b43a695170
2 files changed
+37
-1
No files matched your search
@@ -10964,7 +10964,10 @@ async function waitForRemoteRunnerProcessIdentity(input: {
|
||||
input.identityPath,
|
||||
],
|
||||
bypassSession: true,
|
||||
timeoutMs: 2_000,
|
||||
// An owned remote command includes SSH and supervisor admission before
|
||||
// reading this tiny file. Its normal roundtrip can exceed two seconds.
|
||||
// Give the RPC room while preserving the total identity-wait deadline.
|
||||
timeoutMs: Math.max(1, Math.min(10_000, deadline - Date.now())),
|
||||
})
|
||||
.catch(() => null);
|
||||
const identity =
|
||||
|
||||
Reference in new issue
Block a user