rollbridge 0.1.81 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/daemon.js +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollbridge",
3
- "version": "0.1.81",
3
+ "version": "0.1.83",
4
4
  "description": "Zero-downtime process supervisor and local traffic switcher for deploy-managed apps.",
5
5
  "keywords": [
6
6
  "deploy",
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
- await release.stop()
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 {