@tangle-network/agent-provider-tangle 3.6.8 → 3.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tangle-provider.js +7 -3
- package/package.json +1 -1
package/dist/tangle-provider.js
CHANGED
|
@@ -416,7 +416,7 @@ export function createTangleProvider(options) {
|
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
|
-
*
|
|
419
|
+
* Wait for a usable sandbox before a reconnect reads its container.
|
|
420
420
|
*
|
|
421
421
|
* The platform suspends a sandbox after its idle timeout (30 minutes by
|
|
422
422
|
* default) and nothing resumes it on access. A root turn stalled on an
|
|
@@ -425,10 +425,14 @@ export function createTangleProvider(options) {
|
|
|
425
425
|
* the driver exhausts its attempts. After the resume the sidecar reports the
|
|
426
426
|
* interrupted execution as a terminal failure, so the caller settles that
|
|
427
427
|
* execution and replaces it once instead of dispatching beside it.
|
|
428
|
+
* A box can also report running while its replacement filesystem incarnation
|
|
429
|
+
* is still becoming ready. The same SDK wait closes that gap before backend
|
|
430
|
+
* status is read.
|
|
428
431
|
*/
|
|
429
432
|
async function resumeForReconnect(box, client, timeoutMs, signal) {
|
|
430
|
-
|
|
431
|
-
|
|
433
|
+
// A running lifecycle status can precede the filesystem incarnation and
|
|
434
|
+
// selected backend becoming readable after a container restart. The SDK's
|
|
435
|
+
// waitFor("running") also waits for that incarnation to be ready.
|
|
432
436
|
if (box.status === "stopped") {
|
|
433
437
|
if (!box.resume) {
|
|
434
438
|
throw new Error(`Tangle sandbox ${box.id} is stopped and the linked client cannot resume it`);
|