@nosana/node 1.1.48-rc → 1.1.49-rc

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.48-rc",
3
+ "version": "1.1.49-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"
@@ -1,10 +1,22 @@
1
1
  /**
2
2
  * Exit codes the auto-update wrapper acts on; it stops on any other code.
3
3
  * Keep in sync with `auto-update/src/index.ts`.
4
+ *
5
+ * Wrappers already deployed only know UPDATE (129); every other code ends
6
+ * them, and with them the node. Until those wrappers are replaced,
7
+ * UPDATE_IN_JOB_LOOP deliberately aliases UPDATE so a node updating from the
8
+ * job loop is respawned rather than dropped. The cost is that the newer
9
+ * wrapper cannot tell the two apart, so the replacement starts fresh instead
10
+ * of resuming the job loop. Restore 76 once old wrappers are gone.
11
+ *
12
+ * RESTART stays distinct: old wrappers exit on it, as they did before it
13
+ * existed, so the outside supervisor takes over; the newer wrapper restarts
14
+ * with backoff. Aliasing it to UPDATE would reinstall on every failure with
15
+ * no delay, and kill pinned wrappers outright.
4
16
  */
5
17
  export declare const EXIT_CODES: {
6
18
  readonly UPDATE: 129;
7
- readonly UPDATE_IN_JOB_LOOP: 76;
19
+ readonly UPDATE_IN_JOB_LOOP: 129;
8
20
  readonly RESTART: 75;
9
21
  };
10
22
  /** Set by the wrapper on the process that replaces a node in the job loop. */
@@ -1,10 +1,22 @@
1
1
  /**
2
2
  * Exit codes the auto-update wrapper acts on; it stops on any other code.
3
3
  * Keep in sync with `auto-update/src/index.ts`.
4
+ *
5
+ * Wrappers already deployed only know UPDATE (129); every other code ends
6
+ * them, and with them the node. Until those wrappers are replaced,
7
+ * UPDATE_IN_JOB_LOOP deliberately aliases UPDATE so a node updating from the
8
+ * job loop is respawned rather than dropped. The cost is that the newer
9
+ * wrapper cannot tell the two apart, so the replacement starts fresh instead
10
+ * of resuming the job loop. Restore 76 once old wrappers are gone.
11
+ *
12
+ * RESTART stays distinct: old wrappers exit on it, as they did before it
13
+ * existed, so the outside supervisor takes over; the newer wrapper restarts
14
+ * with backoff. Aliasing it to UPDATE would reinstall on every failure with
15
+ * no delay, and kill pinned wrappers outright.
4
16
  */
5
17
  export const EXIT_CODES = {
6
18
  UPDATE: 129,
7
- UPDATE_IN_JOB_LOOP: 76,
19
+ UPDATE_IN_JOB_LOOP: 129,
8
20
  RESTART: 75,
9
21
  };
10
22
  /** Set by the wrapper on the process that replaces a node in the job loop. */
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.48-rc",
3
+ "version": "1.1.49-rc",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@nosana/node",
9
- "version": "1.1.48-rc",
9
+ "version": "1.1.49-rc",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@coral-xyz/anchor": "^0.28.1-beta.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.48-rc",
3
+ "version": "1.1.49-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"