rollbridge 0.1.82 → 0.1.83
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/package.json +1 -1
- package/src/daemon.js +6 -1
package/package.json
CHANGED
package/src/daemon.js
CHANGED
|
@@ -1823,7 +1823,12 @@ export default class RollbridgeDaemon {
|
|
|
1823
1823
|
if (this.stopping) throw new Error("Rollbridge is shutting down")
|
|
1824
1824
|
} catch (error) {
|
|
1825
1825
|
this.logger("deploy failed", {error: error instanceof Error ? error.message : String(error), releaseId: newReleaseId})
|
|
1826
|
-
|
|
1826
|
+
// A candidate that fails before it becomes authoritative is already a retired
|
|
1827
|
+
// generation. Apply the same bounded retirement decision used by handoff and
|
|
1828
|
+
// shutdown; an indefinite worker stop here leaves its processes behind while the
|
|
1829
|
+
// failed deploy is being unwound, which is exactly how a dead candidate kept
|
|
1830
|
+
// TensorBuzz's 7330/7331 generation ports occupied.
|
|
1831
|
+
await release.stop({retirementTimeoutMs: nextConfig.proxy.nonBlockingDrainTimeoutMs})
|
|
1827
1832
|
await this.stopStartedServices(startedServices)
|
|
1828
1833
|
throw error
|
|
1829
1834
|
} finally {
|