@runuai/host 0.9.80 → 0.9.81
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/lib/machine-provider-aws.ts +14 -1
- package/package.json +1 -1
|
@@ -399,7 +399,20 @@ export function createAwsMachineProvider(
|
|
|
399
399
|
}`,
|
|
400
400
|
);
|
|
401
401
|
}
|
|
402
|
-
|
|
402
|
+
// DescribeInstances TAG FILTERS are eventually consistent: the query
|
|
403
|
+
// can miss an instance RunInstances just created (live 2026-08-28 —
|
|
404
|
+
// the machine was running the whole time while launch reported
|
|
405
|
+
// "absent"). Absence immediately after a successful launch is
|
|
406
|
+
// therefore not evidence yet; give the filter a bounded window.
|
|
407
|
+
let info = await describe(machineId);
|
|
408
|
+
for (
|
|
409
|
+
let attempt = 0;
|
|
410
|
+
(info.state === "absent" || info.state === "unknown") && attempt < 5;
|
|
411
|
+
attempt += 1
|
|
412
|
+
) {
|
|
413
|
+
await new Promise<void>((resolve) => setTimeout(resolve, 3_000));
|
|
414
|
+
info = await describe(machineId);
|
|
415
|
+
}
|
|
403
416
|
if (info.state === "absent" || info.state === "unknown") {
|
|
404
417
|
throw new Error(
|
|
405
418
|
`machine ${machineId} launched but could not be described (${info.state}${
|