@molecule/api-code-sandbox-flyio 1.2.7 → 1.2.8
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/provider.d.ts.map +1 -1
- package/dist/provider.js +8 -3
- package/package.json +1 -1
package/dist/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAWV,eAAe,EAGhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAwBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAIV,WAAW,EAUZ,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,KAAK,EAWV,eAAe,EAGhB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAgC,MAAM,UAAU,CAAA;AAwBrE,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,cAAc,CAAA;AAEhG,OAAO,KAAK,EAIV,WAAW,EAUZ,MAAM,YAAY,CAAA;AAsgFnB;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,MAAM,CAAC,EAAE,WAAW,EACpB,MAAM,CAAC,EAAE,YAAY,EACrB,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,GACzB,eAAe,CAEjB"}
|
package/dist/provider.js
CHANGED
|
@@ -149,10 +149,15 @@ const MACHINE_CREATE_ATTEMPTS = 6;
|
|
|
149
149
|
/**
|
|
150
150
|
* Retrying a `POST /machines` on 404 is SAFE precisely because "app not found"
|
|
151
151
|
* means no Machine was created — unlike a 5xx/timeout, where one might have
|
|
152
|
-
* been.
|
|
153
|
-
*
|
|
152
|
+
* been. 412 is safe for the same reason: "volume already claimed by machine
|
|
153
|
+
* <id>" refuses the create. It is what the create answers in the seconds after
|
|
154
|
+
* {@link FlyioSandboxProvider.destroyStaleMachines} removed the Machine that
|
|
155
|
+
* held the volume — Fly releases the claim asynchronously, and an immediate
|
|
156
|
+
* create lost a production deploy to it (2026-10-14; the identical retry a
|
|
157
|
+
* minute later succeeded). Only these two are added on top of the client's
|
|
158
|
+
* default retryable set; neither retry can double-create.
|
|
154
159
|
*/
|
|
155
|
-
const MACHINE_CREATE_RETRY_STATUSES = [404];
|
|
160
|
+
const MACHINE_CREATE_RETRY_STATUSES = [404, 412];
|
|
156
161
|
/**
|
|
157
162
|
* Base64 chunk size for {@link Sandbox.importFiles}'s temp-file write. Bounded by
|
|
158
163
|
* the same Fly exec payload limit as `WRITE_CHUNK_BASE64` (~15 KB, silently
|