@adonis-agora/durable 0.19.2 → 0.21.0
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/CHANGELOG.md +95 -0
- package/dist/src/codec-state-store.d.ts +2 -1
- package/dist/src/codec-state-store.d.ts.map +1 -1
- package/dist/src/codec-state-store.js +8 -0
- package/dist/src/codec-state-store.js.map +1 -1
- package/dist/src/control-plane-redis/index.d.ts +1 -1
- package/dist/src/control-plane-redis/index.d.ts.map +1 -1
- package/dist/src/control-plane-redis/index.js.map +1 -1
- package/dist/src/control-plane-redis/redis-control-plane.d.ts +70 -29
- package/dist/src/control-plane-redis/redis-control-plane.d.ts.map +1 -1
- package/dist/src/control-plane-redis/redis-control-plane.js +16 -6
- package/dist/src/control-plane-redis/redis-control-plane.js.map +1 -1
- package/dist/src/dashboard/index.d.ts +1 -1
- package/dist/src/dashboard/index.js +1 -1
- package/dist/src/engine.d.ts +10 -1
- package/dist/src/engine.d.ts.map +1 -1
- package/dist/src/engine.js +86 -18
- package/dist/src/engine.js.map +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/interfaces.d.ts +16 -0
- package/dist/src/interfaces.d.ts.map +1 -1
- package/dist/src/step-discovery.d.ts +3 -2
- package/dist/src/step-discovery.d.ts.map +1 -1
- package/dist/src/step-discovery.js +8 -5
- package/dist/src/step-discovery.js.map +1 -1
- package/dist/src/stores/lucid-schema.d.ts +18 -1
- package/dist/src/stores/lucid-schema.d.ts.map +1 -1
- package/dist/src/stores/lucid-schema.js +44 -1
- package/dist/src/stores/lucid-schema.js.map +1 -1
- package/dist/src/stores/lucid.d.ts +2 -1
- package/dist/src/stores/lucid.d.ts.map +1 -1
- package/dist/src/stores/lucid.js +31 -0
- package/dist/src/stores/lucid.js.map +1 -1
- package/dist/src/testing/in-memory-state-store.d.ts +2 -1
- package/dist/src/testing/in-memory-state-store.d.ts.map +1 -1
- package/dist/src/testing/in-memory-state-store.js +12 -0
- package/dist/src/testing/in-memory-state-store.js.map +1 -1
- package/dist/src/testing-kit/state-store-conformance.d.ts.map +1 -1
- package/dist/src/testing-kit/state-store-conformance.js +47 -0
- package/dist/src/testing-kit/state-store-conformance.js.map +1 -1
- package/dist/src/transports/bullmq/bullmq-transport.d.ts.map +1 -1
- package/dist/src/transports/bullmq/bullmq-transport.js +1 -1
- package/dist/src/transports/bullmq/bullmq-transport.js.map +1 -1
- package/dist/src/workflow-discovery.d.ts +33 -3
- package/dist/src/workflow-discovery.d.ts.map +1 -1
- package/dist/src/workflow-discovery.js +40 -8
- package/dist/src/workflow-discovery.js.map +1 -1
- package/dist/src/workflow-ref.d.ts +25 -1
- package/dist/src/workflow-ref.d.ts.map +1 -1
- package/dist/src/workflow-ref.js +31 -0
- package/dist/src/workflow-ref.js.map +1 -1
- package/dist/stubs/database/migrations/create_durable_tables.stub +33 -89
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,100 @@
|
|
|
1
1
|
# @adonis-agora/durable
|
|
2
2
|
|
|
3
|
+
## 0.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`fd02d95`](https://github.com/DavideCarvalho/adonis-durable/commit/fd02d955599d85c0daa4787e80bbf7fc6ff2c471) - `RedisPubSub` can now actually be satisfied by the two clients it advertises. Its docblock claimed "BOTH a raw `ioredis` instance and an `@adonisjs/redis` connection satisfy it structurally". Against the real typings, **neither did** — passing either one to `RedisControlPlane`/`defineConfig`'s `connection` was a compile error, on an API whose own feature detection is built on the assumption that callers can:
|
|
8
|
+
|
|
9
|
+
- A real `Redis` failed on `subscribe`. The port declared `subscribe(channel, handler?)` — that is the `@adonisjs/redis` shape. ioredis's real overloads are `(...channels: (string | Buffer)[], callback?)`, where `callback` is a node-style `(err, result)` _completion_ callback, not a per-message handler; the two are not structurally compatible in either direction.
|
|
10
|
+
- A real `RedisConnection` failed on `on`. The port declared `on?(event: string, listener)`; `@adonisjs/redis`'s is emittery-style `<Name extends keyof ConnectionEvents>(eventName, listener, options?)`, which a plain `string` event does not satisfy.
|
|
11
|
+
|
|
12
|
+
It survived because every unit test hands the driver a hand-written fake, and the one spec that used a real client cast the mismatch away at the seam.
|
|
13
|
+
|
|
14
|
+
`RedisPubSub` is now a union of the two real shapes — `IoredisPubSub | AdonisRedisPubSub` (both newly exported, along with `IoredisSubscriber`, the narrower surface of the `duplicate()`d subscriber, which cannot publish or re-duplicate). A named type guard maps the existing runtime feature test (`duplicate()` present ⇒ raw ioredis) onto the right arm, so the call sites narrow instead of casting. The three per-event `on` overloads also let the driver drop the `as never` it needed on every listener.
|
|
15
|
+
|
|
16
|
+
No runtime behaviour changed: the detection, the channel name, the payload and the watchdog are all untouched, and the suite is unmoved at 984 passing.
|
|
17
|
+
|
|
18
|
+
Marked minor rather than patch because `RedisPubSub` stops being an `interface`: a consumer writing `class MyFake implements RedisPubSub` no longer compiles (a class cannot implement a union) and must pick the arm it models. Values assignable to the old shape generally still are — this repo's own fakes needed only that one-word change.
|
|
19
|
+
|
|
20
|
+
- [`96f2ddf`](https://github.com/DavideCarvalho/adonis-durable/commit/96f2ddf4de29faa7b873bd640196f53c894c01ac) - The generated migration no longer copies the durable schema, and the schema self-heal is no longer silent.
|
|
21
|
+
|
|
22
|
+
**Do you need to do anything?** Only if you want the repair recorded in your migration history — nothing is broken today, and nothing breaks on upgrade.
|
|
23
|
+
|
|
24
|
+
- **You are on `autoSchema: true` (the default) and your app boots fine.** You may now see one new warning at boot, naming columns like `durable_step_checkpoints.last_heartbeat_at`. That is not a new fault — it is the library finally saying out loud something it has been doing silently at every boot: your database is missing columns the installed version writes, and `ensureSchema()` is adding them for you. Your data is fine and the columns are correct. To make it stop (and to stop depending on a runtime repair for your schema), add one migration:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { BaseSchema } from "@adonisjs/lucid/schema";
|
|
28
|
+
import db from "@adonisjs/lucid/services/db";
|
|
29
|
+
import { createDurableTables } from "@adonis-agora/durable";
|
|
30
|
+
|
|
31
|
+
export default class extends BaseSchema {
|
|
32
|
+
static disableTransactions = true;
|
|
33
|
+
async up() {
|
|
34
|
+
await createDurableTables(db, this.db.connectionName);
|
|
35
|
+
}
|
|
36
|
+
async down() {} // convergence only — it did not create these tables
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
It is idempotent, additive-only, and a no-op where the self-heal already ran. `static disableTransactions = true` is required: the DDL runs on a connection the `Database` manager checks out itself, so on a `pool: { max: 1 }` connection the migrator's transaction would hold the only connection and the migration would hang.
|
|
41
|
+
|
|
42
|
+
- **You see no warning.** Nothing to do. Your migrations are current — the warning fires only on an applied repair, never on a schema that is already right, and never on a fresh database.
|
|
43
|
+
|
|
44
|
+
- **You are on `autoSchema: false`.** You are the case that could actually be broken, because nothing repairs your schema at boot. If your `durable_step_checkpoints` lacks `last_heartbeat_at` / `heartbeat_progress`, step heartbeats have been silently discarded (the engine's heartbeat write is fire-and-forget, so it never surfaced). Run the migration above.
|
|
45
|
+
|
|
46
|
+
**Why the change.** The migration stub reproduced the DDL that `createDurableTables` already produces, and the copy drifted twice — most recently missing `last_heartbeat_at` and `heartbeat_progress`, which `LucidStateStore.recordStepHeartbeat` writes on every beat. Fixing the stub did not help anyone who had already run `node ace configure`: their migration file is a frozen copy of the old DDL, and their app only worked because `ensureSchema()` patched the database at every boot with nothing recorded anywhere. A consumer audit found an app in exactly that state, byte-identical to the published stub, for eleven minor versions.
|
|
47
|
+
|
|
48
|
+
So the schema now lives in one place. `node ace configure @adonis-agora/durable` generates a migration that calls `createDurableTables(db, this.db.connectionName)` (with `db` from `@adonisjs/lucid/services/db`) and `dropDurableTables` in `down()`, instead of a DDL snapshot that can go stale. The trade, taken deliberately: a migration that calls the library is not a frozen snapshot, so a fresh database follows the installed version rather than the version you generated under. That is what already happened at boot via `autoSchema`, `createDurableTables` only ever adds tables and nullable/defaulted columns, and the schema belongs to the library — hand-versioning it is what drifted in the first place.
|
|
49
|
+
|
|
50
|
+
`createDurableTables(db, connectionName?, options?)` takes an optional third argument, `{ logger }`, to route the applied-repair warning into your own logger instead of `console`. Existing two-argument calls are unaffected. No exports moved and no signature broke; the DDL itself is unchanged.
|
|
51
|
+
|
|
52
|
+
Not changed on purpose: `autoSchema`'s default (the repair stays on, and apps in production depend on it), the repair itself (it warns, it does not throw), and the engine's fire-and-forget heartbeat write (a lost liveness update genuinely never harms a run).
|
|
53
|
+
|
|
54
|
+
- [`e3a1a5e`](https://github.com/DavideCarvalho/adonis-durable/commit/e3a1a5ec5bc7c6f49a8f36982aab89d61695fefd) - Fix: an operator's `cancel` (or a timeout sweep, or crash-recovery's dead-letter) landing WHILE a run's in-flight turn was still executing used to be silently undone. `settleRun`'s `completed`/`failed` branches wrote the run's terminal status with an unconditional blind patch — no status predicate at all — so a turn that started from a snapshot taken before the cancel would finish and overwrite `cancelled` back to `completed`, and the waiting parent workflow would be told the child succeeded. The `suspended` branch had a narrower guard (re-reading the run and checking only for `cancelled`), but that read-then-write was itself a TOCTOU race across the same `await`.
|
|
55
|
+
|
|
56
|
+
All three branches — plus `sweepTimeouts` (an unconditional `cancelled` write in a loop with awaits between iterations) and `parkBlocked` (a read-then-write guard that checked only `cancelled`/`completed`, missing `failed`/`dead`) — now go through a new atomic compare-and-set: the write applies only if the run's currently persisted status is still one it's legitimate to transition from, and the predicate is evaluated in the same statement as the write (the database, not a prior JS read, arbitrates), so two racing writers can never both apply.
|
|
57
|
+
|
|
58
|
+
**`StateStore` implementers must add `updateRunIf(runId, expectedStatuses, patch): Promise<boolean>`** — a new required method on the contract, alongside the existing `updateRun`. It applies `patch` only if the run's current status is one of `expectedStatuses`, returning whether the write applied (never throwing on a non-match). For a SQL-backed store the predicate must be part of the `UPDATE ... WHERE` clause; a read-then-write in application code does not provide the same guarantee and reintroduces the exact race this fixes. `@adonis-agora/durable`'s own `LucidStateStore` and `InMemoryStateStore` (and the `CodecStateStore` payload-encryption decorator) already implement it; a custom `StateStore` adapter needs the same addition to keep conforming to the shared `runStateStoreContract` test kit.
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- [`878a628`](https://github.com/DavideCarvalho/adonis-durable/commit/878a628b3bd83b9f2e69f57e23e0af4a8d402988) - Build: `pnpm build` can no longer exit 0 having emitted no JavaScript. `tsc` ran with `incremental: true` against a `.tsbuildinfo` that records what it already wrote to `dist/`, so removing `dist/` and leaving the buildinfo behind (a plain `rm -rf dist`, then a build) made the compiler conclude every output was current and emit nothing. The `copy:stubs` half is a plain `cp`, so it still ran: the result was a `dist/` holding `assets/` and `stubs/` and zero `.js` files, from a build that reported success. Turbo then wrote that empty directory into its cache as a successful `build` and replayed it — `>>> FULL TURBO` — on every later run, including from an otherwise clean tree, so one such build poisoned the cache for good.
|
|
63
|
+
|
|
64
|
+
The build now removes `dist/` before compiling and compiles through a `tsconfig.build.json` with `incremental: false`, so it keeps no state that can disagree with `dist/`, and a new post-condition fails the build outright if `dist/` ends up without JavaScript or without the package entrypoint. That check runs inside the `build` script rather than in CI, which is what makes it cover `prepack` — the path a manual `pnpm publish` takes, and the one place turbo was never involved. `build` and `typecheck` also stop sharing a single buildinfo file, so the two turbo tasks can no longer race on it or restore each other's incremental state from cache.
|
|
65
|
+
|
|
66
|
+
No published version is known to be affected. CI builds from a cold checkout, so the trigger (removing `dist/` from a tree that already had a buildinfo) does not arise there, and `@adonis-agora/durable`'s spec that imports the built `dist/src/index.js` hard-fails under CI when the build is missing — both release workflows run the suite before publishing. The exposure was a developer machine and any cache shared from one. There is nothing to re-install or re-publish because of this.
|
|
67
|
+
|
|
68
|
+
- [`809cd9e`](https://github.com/DavideCarvalho/adonis-durable/commit/809cd9ef732dbb9fd30c62dca79bae54e8458945) - Fix(bullmq): on the BullMQ transport, steps with a `timeoutMs` no longer false-timeout and get re-dispatched while still running. `#runTask` never passed the heartbeat callback to `runStepHandler`, even though `heartbeat()` and `onHeartbeat` were fully wired — so a healthy, actively-progressing long step emitted no beats, `engine.awaitWithHeartbeat` never rearmed its liveness window, and at `timeoutMs` the engine concluded the worker was dead and re-dispatched the same `stepId` while the original worker was still executing it. The transport now emits step heartbeats the engine's liveness window depends on, matching the `db` and `queue` transports.
|
|
69
|
+
|
|
70
|
+
- [`6bbcf6a`](https://github.com/DavideCarvalho/adonis-durable/commit/6bbcf6ac9eea3bbd3b070b6784edc9f5139c83e7) - `discoverWorkflows` now hands back a constructor you can actually call. `DiscoveredWorkflow.cls` was typed as `WorkflowClass`, which is deliberately `abstract new (...) => ...` — that shape exists so any `BaseWorkflow` subclass can be _referenced_ (`ctx.child(Cls)`, `engine.start(Cls)`), and an abstract constructor type is by definition not newable. So `new (await discoverWorkflows(dir))[0]!.cls()` failed to compile with `TS2511: Cannot create an instance of an abstract class`, even though the value is a real, instantiable class and `registerWorkflowClass` does exactly that `new Ctor()` internally, through a local cast that quietly asserted the concrete shape the public type withheld.
|
|
71
|
+
|
|
72
|
+
`cls` is now a new exported `DiscoveredWorkflowClass` — the concrete `new () => { run(ctx, input) }` shape the module already relied on. Concrete constructor types stay assignable to `WorkflowClass`, so every reference-style use of a discovered class keeps compiling; the change only removes an error. Type-level only: no runtime behaviour changed, and the same `registerWorkflowClass` cast is now expressed in terms of the exported type instead of an inline duplicate.
|
|
73
|
+
|
|
74
|
+
- [`6be2a47`](https://github.com/DavideCarvalho/adonis-durable/commit/6be2a4791f9591a8db28e4744aa867b6cf998e12) - Fix: directory discovery of `app/workflows` and `app/steps` now finds `.ts` modules in a dev app instead of silently registering nothing. Both scanners derived the extension to import from this library's own compiled file (`import.meta.url`) rather than from the directory being scanned — resolved as `.js` from `node_modules` in a consuming app, so every `.ts` entry in `app/workflows` / `app/steps` was skipped with no warning. The extension is now derived from the scanned directory's own entries, preferring `.ts` when both a built `.js` and its `.ts` source are present (so a module is never registered twice).
|
|
75
|
+
|
|
76
|
+
- [`1359fea`](https://github.com/DavideCarvalho/adonis-durable/commit/1359fea60ecd1ce0df332006f5a1757c83c04e93) - Fix: `node ace add @adonis-agora/durable` now actually configures the package. The `configure` hook was only reachable through the `./configure` subpath, which AdonisJS never reads — it imports the package main and looks for `configure` there, so the command silently warned and did nothing (`Cannot configure module ... does not export the configure hook`). The package main now re-exports `configure`, so `node ace add` registers the provider, publishes `config/durable.ts` + `config/durable_dashboard.ts`, and publishes the migration stubs as documented.
|
|
77
|
+
|
|
78
|
+
- [`3e202d3`](https://github.com/DavideCarvalho/adonis-durable/commit/3e202d3e4c033ea1e708ed7c46c6b75794575a05) - Fix: the published migration stub (`node ace configure @adonis-agora/durable` → `migration:run`) now creates `last_heartbeat_at` and `heartbeat_progress` on `durable_step_checkpoints`. Those columns were only ever created by the `autoSchema: true` auto-schema path, never by the migration — so an app provisioned via `migration:run` (the documented path, and the only one when `autoSchema: false`) silently lost step-level heartbeat persistence: `LucidStateStore.recordStepHeartbeat` writes both columns on every beat, the engine swallows the resulting UPDATE error, and no heartbeat data ever showed up in the dashboard or in `durable:runs --stale`.
|
|
79
|
+
|
|
80
|
+
Upgrade note for existing installs: apps on `autoSchema: true` (the default) pick up the two columns automatically on next boot — `createDurableTables` carries an in-place auto-migration for them. Apps on `autoSchema: false` need a follow-up migration adding `last_heartbeat_at` (bigInteger, nullable) and `heartbeat_progress` (text, nullable) to `durable_step_checkpoints`.
|
|
81
|
+
|
|
82
|
+
## 0.20.0
|
|
83
|
+
|
|
84
|
+
### Minor Changes
|
|
85
|
+
|
|
86
|
+
- [#43](https://github.com/DavideCarvalho/adonis-durable/pull/43) [`b4ba291`](https://github.com/DavideCarvalho/adonis-durable/commit/b4ba2916c3e8cdb198e86c60b7aac403df4df3d2) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - New `@Scheduled(...)` class decorator — the decorator form of the colocated `static schedule`. It only stamps `static schedule` on the class; normalization (key defaults, `workflow` fill-in, the `static workflow` requirement) stays in `workflowSchedules`, so both authoring forms behave identically:
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
@Scheduled({ cron: '0 4 * * *', timezone: 'America/Sao_Paulo' })
|
|
90
|
+
export default class CrawlWorkflow extends BaseWorkflow {
|
|
91
|
+
static workflow = { name: 'crawl' }
|
|
92
|
+
async run(ctx: WorkflowCtx) { … }
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Repeated applications and an existing `static schedule` literal compose, accumulating in source order (top decorator first, then the literal). With several schedules on one class, prefer explicit `key`s over the positional `${name}:${i}` defaults — the key is part of the deterministic run id, and reordering declarations would silently re-key them.
|
|
97
|
+
|
|
3
98
|
## 0.19.2
|
|
4
99
|
|
|
5
100
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RunQuery, SignalWaiter, StateStore, StepCheckpoint, WorkflowRun } from './interfaces.js';
|
|
1
|
+
import type { RunQuery, RunStatus, SignalWaiter, StateStore, StepCheckpoint, WorkflowRun } from './interfaces.js';
|
|
2
2
|
/**
|
|
3
3
|
* Transforms a payload value as it crosses the store boundary — e.g. encrypt-at-rest, compress, or
|
|
4
4
|
* redact PII. `decode` must be the exact inverse of `encode`. Both are synchronous (use a local
|
|
@@ -31,6 +31,7 @@ export declare class CodecStateStore implements StateStore {
|
|
|
31
31
|
ensureSchema(): Promise<void>;
|
|
32
32
|
createRun(run: WorkflowRun): Promise<void>;
|
|
33
33
|
updateRun(runId: string, patch: Partial<WorkflowRun>): Promise<void>;
|
|
34
|
+
updateRunIf(runId: string, expectedStatuses: RunStatus[], patch: Partial<WorkflowRun>): Promise<boolean>;
|
|
34
35
|
getRun(runId: string): Promise<WorkflowRun | null>;
|
|
35
36
|
deleteRun(runId: string): Promise<void>;
|
|
36
37
|
getCheckpoint(runId: string, seq: number): Promise<StepCheckpoint | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec-state-store.d.ts","sourceRoot":"","sources":["../../src/codec-state-store.ts"],"names":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tB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAIxE,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAG3C,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAGjD,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAGzD,yBAAyB,CAC7B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAWhC,2BAA2B,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAQhG"}
|
|
@@ -47,6 +47,14 @@ export class CodecStateStore {
|
|
|
47
47
|
next.output = this.enc(patch.output);
|
|
48
48
|
return this.inner.updateRun(runId, next);
|
|
49
49
|
}
|
|
50
|
+
updateRunIf(runId, expectedStatuses, patch) {
|
|
51
|
+
const next = { ...patch };
|
|
52
|
+
if ('input' in patch)
|
|
53
|
+
next.input = this.enc(patch.input);
|
|
54
|
+
if ('output' in patch)
|
|
55
|
+
next.output = this.enc(patch.output);
|
|
56
|
+
return this.inner.updateRunIf(runId, expectedStatuses, next);
|
|
57
|
+
}
|
|
50
58
|
async getRun(runId) {
|
|
51
59
|
return this.decRun(await this.inner.getRun(runId));
|
|
52
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec-state-store.js","sourceRoot":"","sources":["../../src/codec-state-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codec-state-store.js","sourceRoot":"","sources":["../../src/codec-state-store.ts"],"names":[],"mappings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;YAC/D,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CACtD,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAC5C,CAAC;QACN,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC;CACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { RedisControlPlane, type RedisControlPlaneOptions, type RedisPubSub, } from './redis-control-plane.js';
|
|
1
|
+
export { type AdonisRedisPubSub, type IoredisPubSub, type IoredisSubscriber, RedisControlPlane, type RedisControlPlaneOptions, type RedisPubSub, } from './redis-control-plane.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/control-plane-redis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,GACjB,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/control-plane-redis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,iBAAiB,EACjB,KAAK,wBAAwB,EAC7B,KAAK,WAAW,GACjB,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/control-plane-redis/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/control-plane-redis/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,GAGlB,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,43 +1,83 @@
|
|
|
1
1
|
import type { ControlMessage, ControlPlane } from '../index.js';
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
4
|
-
* `@adonisjs/redis` connection satisfy it structurally, so we depend on the surface rather than a
|
|
5
|
-
* concrete type — keeping the peer coupling minimal and the driver testable.
|
|
3
|
+
* The raw-`ioredis` half of {@link RedisPubSub}. A real `Redis` instance is assignable to this.
|
|
6
4
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
5
|
+
* A subscriber connection can't run normal commands, so the driver `duplicate()`s a dedicated one,
|
|
6
|
+
* calls `subscribe(channel)` on it, and receives payloads via `on('message', (channel, message))`.
|
|
7
|
+
* `subscribe` therefore takes the channel and NOTHING else here: ioredis's real overloads are
|
|
8
|
+
* `(...channels, callback?)` where `callback` is a node-style `(err, result)` completion callback —
|
|
9
|
+
* *not* a per-message handler. Declaring a per-message handler parameter on this arm is what made
|
|
10
|
+
* the old single-interface port unsatisfiable by a real client (see {@link RedisPubSub}).
|
|
12
11
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* This is the surface of the *subscriber* half specifically — see {@link IoredisPubSub} for the
|
|
13
|
+
* command connection a caller actually passes in.
|
|
15
14
|
*/
|
|
16
|
-
export interface
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* ioredis-only: connection events. `message` delivers a payload on a duplicated subscriber;
|
|
26
|
-
* `error`/`ready`/`subscribe` are used by the watchdog (see {@link RedisControlPlaneOptions.pingIntervalMs}).
|
|
27
|
-
*/
|
|
28
|
-
on?(event: string, listener: (...args: never[]) => void): unknown;
|
|
29
|
-
/** ioredis-only: build a dedicated subscriber connection (pub/sub can't share a command client). */
|
|
30
|
-
duplicate?(): RedisPubSub;
|
|
15
|
+
export interface IoredisSubscriber {
|
|
16
|
+
/** Subscribe to a channel. Payloads arrive on `on('message')`, never through an argument here. */
|
|
17
|
+
subscribe(channel: string): unknown;
|
|
18
|
+
/** A payload on a channel this connection is subscribed to. */
|
|
19
|
+
on?(event: 'message', listener: (channel: string, message: string) => void): unknown;
|
|
20
|
+
/** A connection-level failure — the driver logs one line per reconnect burst. */
|
|
21
|
+
on?(event: 'error', listener: (err: Error) => void): unknown;
|
|
22
|
+
/** The connection (re)established — the driver re-arms its error logging. */
|
|
23
|
+
on?(event: 'ready', listener: () => void): unknown;
|
|
31
24
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
25
|
+
* Tear down this subscriber connection. `disconnect(true)` reconnects (ioredis's `retryStrategy`
|
|
26
|
+
* + `autoResubscribe`) rather than closing for good.
|
|
34
27
|
*/
|
|
35
28
|
disconnect?(reconnect?: boolean): void;
|
|
36
|
-
/**
|
|
29
|
+
/** Liveness probe. Legal in subscriber mode (ioredis's `VALID_IN_SUBSCRIBER_MODE`). */
|
|
37
30
|
ping?(): Promise<unknown>;
|
|
38
|
-
/**
|
|
31
|
+
/** Connection state — the watchdog skips anything that isn't `'ready'`. */
|
|
39
32
|
status?: string;
|
|
40
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* The raw-ioredis **command** connection the caller hands us: a subscriber surface plus the two
|
|
36
|
+
* things only a command connection can do — `publish`, and `duplicate()` to mint the subscriber.
|
|
37
|
+
* `duplicate()` returns an {@link IoredisSubscriber} rather than another `IoredisPubSub` on purpose:
|
|
38
|
+
* a connection in subscriber mode can't run normal commands, so nothing may publish or re-duplicate
|
|
39
|
+
* through it.
|
|
40
|
+
*/
|
|
41
|
+
export interface IoredisPubSub extends IoredisSubscriber {
|
|
42
|
+
/** Publish a message to a channel (returns a promise; the driver only awaits it). */
|
|
43
|
+
publish(channel: string, message: string): unknown;
|
|
44
|
+
/** Build a dedicated subscriber connection (pub/sub can't share a command client). */
|
|
45
|
+
duplicate(): IoredisSubscriber;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The `@adonisjs/redis` half of {@link RedisPubSub}. A `RedisConnection` is assignable to this.
|
|
49
|
+
*
|
|
50
|
+
* This client manages its own subscriber connection internally — no `duplicate()` needed — and hands
|
|
51
|
+
* the payload straight to the handler. Its handler is `(data: string) => …`: it receives the message
|
|
52
|
+
* ONLY, never the channel, which is why no channel parameter is declared here.
|
|
53
|
+
*
|
|
54
|
+
* It deliberately declares no `on`/`ping`/`status`/`disconnect`. `RedisConnection#on` is an
|
|
55
|
+
* emittery-style `<Name extends keyof ConnectionEvents>(eventName, listener, options?)`, which is
|
|
56
|
+
* not assignable to a plain `(event: string, listener)` — declaring one here (as the old port did)
|
|
57
|
+
* made a real `@adonisjs/redis` connection unassignable too. The driver never needs it: every
|
|
58
|
+
* `on`/`ping`/`status`/`disconnect` call happens on the *duplicated* subscriber, which only exists
|
|
59
|
+
* on the ioredis path.
|
|
60
|
+
*/
|
|
61
|
+
export interface AdonisRedisPubSub {
|
|
62
|
+
/** Publish a message to a channel (returns a promise; the driver only awaits it). */
|
|
63
|
+
publish(channel: string, message: string): unknown;
|
|
64
|
+
/** Subscribe to a channel; the handler receives each payload directly. */
|
|
65
|
+
subscribe(channel: string, handler: (message: string) => void): unknown;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The minimal Redis pub/sub surface this control plane needs: EITHER a raw `ioredis` instance
|
|
69
|
+
* ({@link IoredisPubSub}) OR an `@adonisjs/redis` connection ({@link AdonisRedisPubSub}). We depend
|
|
70
|
+
* on the surface rather than the concrete types so the peer coupling stays optional.
|
|
71
|
+
*
|
|
72
|
+
* It is a union, not one wide interface, because the two clients' `subscribe` signatures are
|
|
73
|
+
* genuinely incompatible and no single signature covers both: ioredis is variadic channels plus an
|
|
74
|
+
* optional **node-style `(err, result)`** callback, while `@adonisjs/redis` is `(channel, handler)`
|
|
75
|
+
* with a per-message handler. A single `subscribe(channel, handler?)` describes only the second, so
|
|
76
|
+
* a real `Redis` was NOT assignable — passing one to `defineConfig` was a compile error, even though
|
|
77
|
+
* the driver's own feature detection assumes callers can. Modelling the two arms separately is the
|
|
78
|
+
* honest fix; {@link isIoredisClient} maps the runtime feature test onto the right arm.
|
|
79
|
+
*/
|
|
80
|
+
export type RedisPubSub = IoredisPubSub | AdonisRedisPubSub;
|
|
41
81
|
export interface RedisControlPlaneOptions {
|
|
42
82
|
/** An ioredis instance or an `@adonisjs/redis` connection used for pub/sub. */
|
|
43
83
|
connection: RedisPubSub;
|
|
@@ -79,6 +119,7 @@ export interface RedisControlPlaneOptions {
|
|
|
79
119
|
export declare class RedisControlPlane implements ControlPlane {
|
|
80
120
|
private readonly connection;
|
|
81
121
|
private readonly channel;
|
|
122
|
+
/** Only ever set on the raw-ioredis path — it is the `duplicate()`d subscriber connection. */
|
|
82
123
|
private subscriber;
|
|
83
124
|
private subscribed;
|
|
84
125
|
private readonly pingIntervalMs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis-control-plane.d.ts","sourceRoot":"","sources":["../../../src/control-plane-redis/redis-control-plane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhE
|
|
1
|
+
{"version":3,"file":"redis-control-plane.d.ts","sourceRoot":"","sources":["../../../src/control-plane-redis/redis-control-plane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhE;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB;IAChC,kGAAkG;IAClG,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC,+DAA+D;IAC/D,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,OAAO,EA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AAE,MAAM,GAAG,KAAK,CAAC;CACjC;AAiBD;;;;;;;;;;;GAWG;AACH,qBAAa,iBAAkB,YAAW,YAAY;IACpD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAc;IACzC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,8FAA8F;IAC9F,OAAO,CAAC,UAAU,CAAgC;IAClD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,iBAAiB,CAA6C;IACtE,OAAO,CAAC,MAAM,CAAS;gBAEX,OAAO,EAAE,wBAAwB;IAMvC,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,SAAS,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,IAAI,GAAG,IAAI;IA2BvD;;;;;OAKG;IACH,OAAO,CAAC,eAAe;IAavB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IASzB;;;;;;;;;OASG;YACW,cAAc;IAgC5B,0FAA0F;IACpF,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7B"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which of the two clients are we holding? Detected by feature: a raw ioredis client exposes
|
|
3
|
+
* `duplicate()`, the `@adonisjs/redis` connection does not (it hides its `ioConnection`). That is
|
|
4
|
+
* the same test the driver has always used; expressing it as a type predicate is what lets the two
|
|
5
|
+
* call shapes of `subscribe` be told apart without a cast.
|
|
6
|
+
*/
|
|
7
|
+
function isIoredisClient(connection) {
|
|
8
|
+
return 'duplicate' in connection && typeof connection.duplicate === 'function';
|
|
9
|
+
}
|
|
1
10
|
/** Default {@link RedisControlPlaneOptions.pingIntervalMs}. */
|
|
2
11
|
const DEFAULT_PING_INTERVAL_MS = 30_000;
|
|
3
12
|
/** How long a single watchdog PING may take before its subscriber is presumed dead. */
|
|
@@ -28,6 +37,7 @@ function normalizePingInterval(value) {
|
|
|
28
37
|
export class RedisControlPlane {
|
|
29
38
|
connection;
|
|
30
39
|
channel;
|
|
40
|
+
/** Only ever set on the raw-ioredis path — it is the `duplicate()`d subscriber connection. */
|
|
31
41
|
subscriber;
|
|
32
42
|
subscribed = false;
|
|
33
43
|
pingIntervalMs;
|
|
@@ -55,12 +65,12 @@ export class RedisControlPlane {
|
|
|
55
65
|
}
|
|
56
66
|
handler(msg);
|
|
57
67
|
};
|
|
58
|
-
if (
|
|
68
|
+
if (isIoredisClient(this.connection)) {
|
|
59
69
|
// raw ioredis: a subscriber connection can't run normal commands → use a dedicated dup.
|
|
60
70
|
const sub = this.connection.duplicate();
|
|
61
71
|
this.subscriber = sub;
|
|
62
72
|
void sub.subscribe(this.channel);
|
|
63
|
-
sub.on?.('message', (
|
|
73
|
+
sub.on?.('message', (_channel, payload) => deliver(payload));
|
|
64
74
|
this.trackSubscriber(sub);
|
|
65
75
|
}
|
|
66
76
|
else {
|
|
@@ -76,15 +86,15 @@ export class RedisControlPlane {
|
|
|
76
86
|
*/
|
|
77
87
|
trackSubscriber(sub) {
|
|
78
88
|
let loggedSinceReady = false;
|
|
79
|
-
sub.on?.('error', (
|
|
89
|
+
sub.on?.('error', (err) => {
|
|
80
90
|
if (loggedSinceReady)
|
|
81
91
|
return; // one line per reconnect burst, not one per retry
|
|
82
92
|
loggedSinceReady = true;
|
|
83
93
|
console.warn(`[adonis-durable] control-plane subscriber error: ${err.message}`);
|
|
84
|
-
})
|
|
85
|
-
sub.on?.('ready', (
|
|
94
|
+
});
|
|
95
|
+
sub.on?.('ready', () => {
|
|
86
96
|
loggedSinceReady = false;
|
|
87
|
-
})
|
|
97
|
+
});
|
|
88
98
|
this.startPingWatchdog(sub);
|
|
89
99
|
}
|
|
90
100
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redis-control-plane.js","sourceRoot":"","sources":["../../../src/control-plane-redis/redis-control-plane.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"redis-control-plane.js","sourceRoot":"","sources":["../../../src/control-plane-redis/redis-control-plane.ts"],"names":[],"mappings":"AAqFA;;;;;GAKG;AACH,SAAS,eAAe,CAAC,UAAuB;IAC9C,OAAO,WAAW,IAAI,UAAU,IAAI,OAAO,UAAU,CAAC,SAAS,KAAK,UAAU,CAAC;AACjF,CAAC;AA6BD,+DAA+D;AAC/D,MAAM,wBAAwB,GAAG,MAAM,CAAC;AACxC,uFAAuF;AACvF,MAAM,0BAA0B,GAAG,KAAK,CAAC;AAEzC;;;GAGG;AACH,SAAS,qBAAqB,CAAC,KAAiC;IAC9D,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,wBAAwB,CAAC;IACzD,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACjD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,iBAAiB;IACX,UAAU,CAAc;IACxB,OAAO,CAAS;IACjC,8FAA8F;IACtF,UAAU,CAAgC;IAC1C,UAAU,GAAG,KAAK,CAAC;IACV,cAAc,CAAiB;IACxC,iBAAiB,CAA6C;IAC9D,MAAM,GAAG,KAAK,CAAC;IAEvB,YAAY,OAAiC;QAC3C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,GAAG,OAAO,CAAC,MAAM,IAAI,SAAS,UAAU,CAAC;QACxD,IAAI,CAAC,cAAc,GAAG,qBAAqB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,GAAmB;QACtC,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;IACnE,CAAC;IAED,SAAS,CAAC,OAAsC;QAC9C,IAAI,IAAI,C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A,IAAI,EAAE,EAAE;qBACR,IAAI,CAAC,GAAG,EAAE;oBACT,YAAY,CAAC,KAAK,CAAC,CAAC;oBACpB,OAAO,EAAE,CAAC;gBACZ,CAAC,CAAC;qBACD,KAAK,CAAC,CAAC,GAAY,EAAE,EAAE;oBACtB,YAAY,CAAC,KAAK,CAAC,CAAC;oBACpB,MAAM,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBAC9D,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,4FAA4F;YAC5F,kFAAkF;YAClF,IAAI,IAAI,CAAC,MAAM;gBAAE,OAAO;YACxB,MAAM,OAAO,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACjE,OAAO,CAAC,IAAI,CACV,2DAA2D,OAAO,8CAA8C,CACjH,CAAC;YACF,GAAG,CAAC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;IACH,CAAC;IAED,0FAA0F;IAC1F,KAAK,CAAC,KAAK;QACT,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,IAAI,CAAC,iBAAiB;YAAE,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAClE,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC;QACnC,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,EAAE,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Keep in sync with this package's `version` in package.json. */
|
|
2
|
-
export declare const VERSION = "0.
|
|
2
|
+
export declare const VERSION = "0.21.0";
|
|
3
3
|
export { defineConfig, defaultAuthorize, resolveConfig } from './define_config.js';
|
|
4
4
|
export type { AuthorizeHook, DurableDashboardConfig, ResolvedDurableDashboardConfig, } from './define_config.js';
|
|
5
5
|
export { listRuns, getRun, retryRun, redispatchPendingRun, cancelRun, health, ok, } from './handlers.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Keep in sync with this package's `version` in package.json. */
|
|
2
|
-
export const VERSION = '0.
|
|
2
|
+
export const VERSION = '0.21.0';
|
|
3
3
|
export { defineConfig, defaultAuthorize, resolveConfig } from './define_config.js';
|
|
4
4
|
export { listRuns, getRun, retryRun, redispatchPendingRun, cancelRun, health, ok, } from './handlers.js';
|
|
5
5
|
export { renderDashboard } from './html.js';
|
package/dist/src/engine.d.ts
CHANGED
|
@@ -779,6 +779,13 @@ export declare class WorkflowEngine {
|
|
|
779
779
|
* keeps its own lease handling (the TS executor's `finally`, the remote path's caller).
|
|
780
780
|
*/
|
|
781
781
|
private settleRun;
|
|
782
|
+
/**
|
|
783
|
+
* Re-read a run's CURRENT persisted state and report it as a `RunResult` — called when an
|
|
784
|
+
* `updateRunIf` write lost the race (the run reached a terminal state via a different path while
|
|
785
|
+
* this turn's outcome was being computed from a stale snapshot). No emit, no `notifyParent`: the
|
|
786
|
+
* path that actually won the race already did its own emit/notify when it wrote.
|
|
787
|
+
*/
|
|
788
|
+
private echoCurrentStatus;
|
|
782
789
|
/**
|
|
783
790
|
* A wakeAt to persist on a suspend: the natural timer if the turn produced one (a `ctx.sleep`, a
|
|
784
791
|
* remote-step deadline), else the {@link reconcileMs} fallback so an event-waiting run (child/signal/
|
|
@@ -862,7 +869,9 @@ export declare class WorkflowEngine {
|
|
|
862
869
|
* `blocked` status with a human reason + a `wakeAt` so the blocked-recovery poll re-drives it, emits
|
|
863
870
|
* the LOUD structured `capability.unavailable`/`protocol.incompatible` diagnostics event (carrying
|
|
864
871
|
* both descriptors + the precise delta), and releases the run lease so any instance can re-drive it.
|
|
865
|
-
*
|
|
872
|
+
* Conditional on the same {@link SETTLE_ELIGIBLE_STATUSES} set `settleRun` uses — this used to
|
|
873
|
+
* re-check only `cancelled`/`completed` (a narrower, TOCTOU-prone read-then-write), silently missing
|
|
874
|
+
* `failed`→retry-in-flight and `dead`; the conditional write closes both gaps atomically.
|
|
866
875
|
*/
|
|
867
876
|
private parkBlocked;
|
|
868
877
|
/** Runs parked `blocked` whose recovery poll is due (`wakeAt <= nowMs`), namespace-scoped like
|
package/dist/src/engine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../src/engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAA4B,MAAM,gBAAgB,CAAC;AAYjF,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,eAAe,CAAC;AAS5D,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGnF,OAAO,KAAK,EACV,YAAY,EAEZ,cAAc,EACd,WAAW,EAEX,cAAc,EAEd,aAAa,EACb,QAAQ,EACR,SAAS,EAET,gBAAgB,EAEhB,UAAU,EACV,cAAc,EAEd,SAAS,EAET,eAAe,EAIf,SAAS,EACT,YAAY,EACZ,eAAe,EAEf,WAAW,EAEX,gBAAgB,EAChB,WAAW,EAEZ,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAWxD,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,WAAW,EAEjB,MAAM,mBAAmB,CAAC;AAE3B,KAAK,UAAU,GAAG,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAEzE,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,gGAAgG;IAChG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