@faable/faable 4.39.0 → 4.39.1
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.
|
@@ -214,9 +214,21 @@ const launch = {
|
|
|
214
214
|
failure = { phase, reason: dep.status?.reason };
|
|
215
215
|
break;
|
|
216
216
|
}
|
|
217
|
-
// CANCELED: the platform superseded this build before it produced a
|
|
218
|
-
// runnable (a sibling deployment of the app won the promotion).
|
|
219
217
|
if (phase === 'CANCELED') {
|
|
218
|
+
// A moderation hold cancels the build too, and then nothing is
|
|
219
|
+
// live: it is a failure, not a supersede. Read on the app, not
|
|
220
|
+
// the deployment, whose reason is free text (2026-11-11: a
|
|
221
|
+
// plan-held app was told "The app is live" and answered 410).
|
|
222
|
+
// Re-read: `current` predates the deployment read, and the hold
|
|
223
|
+
// may have landed between the two.
|
|
224
|
+
const after = await api.getApp(app.id).catch(() => current);
|
|
225
|
+
const held = after.disabled_reason ?? null;
|
|
226
|
+
if (held) {
|
|
227
|
+
failure = { phase, reason: dep.status?.reason ?? held };
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
// Otherwise the platform superseded this build before it produced
|
|
231
|
+
// a runnable (a sibling deployment of the app won the promotion).
|
|
220
232
|
superseded = dep.status?.reason ?? 'canceled';
|
|
221
233
|
break;
|
|
222
234
|
}
|