@adonis-agora/durable 0.23.0 → 0.24.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 +37 -0
- package/dist/assets/spa/assets/{index-BxZp72PC.js → index-CV232q_B.js} +2 -2
- package/dist/assets/spa/assets/index-CV232q_B.js.map +1 -0
- package/dist/assets/spa/index.html +1 -1
- package/dist/providers/durable_provider.d.ts.map +1 -1
- package/dist/providers/durable_provider.js +31 -5
- package/dist/providers/durable_provider.js.map +1 -1
- package/dist/src/admission.d.ts +1 -1
- package/dist/src/admissions/factory.d.ts +73 -0
- package/dist/src/admissions/factory.d.ts.map +1 -0
- package/dist/src/admissions/factory.js +41 -0
- package/dist/src/admissions/factory.js.map +1 -0
- package/dist/src/dashboard/handlers.d.ts +4 -1
- package/dist/src/dashboard/handlers.d.ts.map +1 -1
- package/dist/src/dashboard/handlers.js +62 -5
- package/dist/src/dashboard/handlers.js.map +1 -1
- package/dist/src/dashboard/index.d.ts +1 -1
- package/dist/src/dashboard/index.js +1 -1
- package/dist/src/define_config.d.ts +35 -2
- package/dist/src/define_config.d.ts.map +1 -1
- package/dist/src/define_config.js +2 -1
- package/dist/src/define_config.js.map +1 -1
- package/dist/src/dispatch-routing.d.ts +1 -1
- package/dist/src/dispatch-routing.js +1 -1
- package/dist/src/engine.d.ts +2 -2
- package/dist/src/index.d.ts +5 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/protocol.js +1 -1
- package/dist/src/queue.d.ts +2 -2
- package/dist/src/testing/in-memory-transport.js +1 -1
- package/dist/src/transports/event-emitter.js +1 -1
- package/dist/src/transports/factory.d.ts +56 -2
- package/dist/src/transports/factory.d.ts.map +1 -1
- package/dist/src/transports/factory.js +14 -0
- package/dist/src/transports/factory.js.map +1 -1
- package/package.json +3 -3
- package/dist/assets/spa/assets/index-BxZp72PC.js.map +0 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -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.24.0";
|
|
3
3
|
export * from './admission.js';
|
|
4
4
|
export * from './control-flow-signal.js';
|
|
5
5
|
export * from './duration.js';
|
|
@@ -41,10 +41,13 @@ export { TRANSPORT_TABLES, createDurableTransportTables, dropDurableTransportTab
|
|
|
41
41
|
export { stores } from './stores/factory.js';
|
|
42
42
|
export type { StoreContext, StoreFactory, LucidStoreConfig } from './stores/factory.js';
|
|
43
43
|
export { LucidStateStore, type LucidStateStoreOptions } from './stores/lucid.js';
|
|
44
|
-
export { DURABLE_TABLES, createDurableTables, dropDurableTables } from './stores/lucid-schema.js';
|
|
44
|
+
export { type CreateDurableTablesOptions, DURABLE_TABLES, type DurableSchemaLogger, createDurableTables, dropDurableTables, } from './stores/lucid-schema.js';
|
|
45
|
+
export { admissions } from './admissions/factory.js';
|
|
46
|
+
export type { AdmissionContext, AdmissionFactory, RedisAdmissionConfig, } from './admissions/factory.js';
|
|
45
47
|
export { controlPlanes } from './control-planes/factory.js';
|
|
46
48
|
export type { ControlPlaneContext, ControlPlaneFactory, RedisControlPlaneConfig, } from './control-planes/factory.js';
|
|
47
49
|
export { type AdonisRedisPubSub, type IoredisPubSub, type IoredisSubscriber, RedisControlPlane, type RedisControlPlaneOptions, type RedisPubSub, } from './control-plane-redis/redis-control-plane.js';
|
|
50
|
+
export { DEFAULT_STALE_MS, type ListRunsOptions, type RunLister, type RunLiveness, type StalePendingStep, type TickOptions, type TickResult, type WorkerLogger, type WorkerLoopOptions, attachLiveness, filterStale, listRuns, parseDurationMs, renderRunsTable, retryRun, runTick, runWorkerLoop, staleHint, } from './commands/index.js';
|
|
48
51
|
export { defineConfig } from './define_config.js';
|
|
49
52
|
export type { DurableConfig } from './define_config.js';
|
|
50
53
|
export type { StandaloneConfig, ControlPlaneConfig, TenantConfig, TenantVerifier, VerifiedTenant, } from './config_types.js';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,OAAO,WAAW,CAAC;AAGhC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,YAAY,EACZ,UAAU,GACX,MAAM,uBAAuB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,C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C;AAG7B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,cAAc,GACf,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC/F,OAAO,EACL,eAAe,EACf,KAAK,gBAAgB,EACrB,KAAK,sBAAsB,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,KAAK,cAAc,EACnB,KAAK,sBAAsB,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,GAChC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAGnF,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AAKtC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -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.24.0';
|
|
3
3
|
// --- engine + core primitives -----------------------------------------------
|
|
4
4
|
export * from './admission.js';
|
|
5
5
|
export * from './control-flow-signal.js';
|
|
@@ -42,10 +42,16 @@ export { TRANSPORT_TABLES, createDurableTransportTables, dropDurableTransportTab
|
|
|
42
42
|
// --- config-driven state-store drivers --------------------------------------
|
|
43
43
|
export { stores } from './stores/factory.js';
|
|
44
44
|
export { LucidStateStore } from './stores/lucid.js';
|
|
45
|
-
export { DURABLE_TABLES, createDurableTables, dropDurableTables } from './stores/lucid-schema.js';
|
|
45
|
+
export { DURABLE_TABLES, createDurableTables, dropDurableTables, } from './stores/lucid-schema.js';
|
|
46
|
+
// --- config-driven admission drivers ----------------------------------------
|
|
47
|
+
export { admissions } from './admissions/factory.js';
|
|
46
48
|
// --- config-driven control-plane drivers ------------------------------------
|
|
47
49
|
export { controlPlanes } from './control-planes/factory.js';
|
|
48
50
|
export { RedisControlPlane, } from './control-plane-redis/redis-control-plane.js';
|
|
51
|
+
// --- ace command building blocks --------------------------------------------
|
|
52
|
+
// The pieces `durable:work` / `durable:runs` / `durable:retry` are built from, exported so an app can
|
|
53
|
+
// compose its own command or scheduler on top of them without re-implementing the loop.
|
|
54
|
+
export { DEFAULT_STALE_MS, attachLiveness, filterStale, listRuns, parseDurationMs, renderRunsTable, retryRun, runTick, runWorkerLoop, staleHint, } from './commands/index.js';
|
|
49
55
|
// --- AdonisJS integration ---------------------------------------------------
|
|
50
56
|
export { defineConfig } from './define_config.js';
|
|
51
57
|
export { StoreRunGateway, } from './run-gateway/store-run-gateway.js';
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAEhC,+EAA+E;AAC/E,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EAG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,sDAAsD;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/src/protocol.js
CHANGED
|
@@ -52,7 +52,7 @@ export async function runStepHandler(task, handler, emitBeat) {
|
|
|
52
52
|
const events = [];
|
|
53
53
|
const withEvents = (result) => events.length > 0 ? { ...result, events } : result;
|
|
54
54
|
// Run the handler INSIDE the originating request's context (userRef/tenant/traceId), restored from
|
|
55
|
-
// the task snapshot, so cross-process propagation is automatic — `ctx.
|
|
55
|
+
// the task snapshot, so cross-process propagation is automatic — `ctx.step(remoteStep, input)`
|
|
56
56
|
// carries the caller's context with zero manual serialize/deserialize, and each task runs in its
|
|
57
57
|
// own scope (no cross-task bleed on a long-lived worker). No-op without `@adonis-agora/context`.
|
|
58
58
|
// Wire `log.heartbeat(progress)` to the transport's heartbeat lane (fire-and-forget — a lost beat
|
package/dist/src/queue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Flow control for remote steps. A queue caps how much work `ctx.
|
|
2
|
+
* Flow control for remote steps. A queue caps how much work `ctx.step(step, input, { queue })`
|
|
3
3
|
* admits at once — a concurrency limit and/or a fixed-window rate limit. When a call can't be
|
|
4
4
|
* admitted it doesn't dispatch: the run re-suspends with a near-future wake time, and the timer
|
|
5
5
|
* poller re-tries admission later — so flow control is durable (survives crashes) without holding
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* blocked, and on a later retry only admits the one that is rightful-next under the policy.
|
|
24
24
|
*/
|
|
25
25
|
export interface QueueConfig {
|
|
26
|
-
/** Queue name, referenced by `ctx.
|
|
26
|
+
/** Queue name, referenced by `ctx.step(step, input, { queue: name })`. */
|
|
27
27
|
name: string;
|
|
28
28
|
/** Max steps in flight at once for this queue (this instance). Omit for unlimited. */
|
|
29
29
|
concurrency?: number;
|
|
@@ -26,7 +26,7 @@ export class InMemoryTransport {
|
|
|
26
26
|
if (!this.resultHandler)
|
|
27
27
|
throw new Error('no result handler registered');
|
|
28
28
|
const result = await runStepHandler(task, this.handlers.get(task.name));
|
|
29
|
-
// Deliver the result ASYNCHRONOUSLY, not inline: a durable `ctx.
|
|
29
|
+
// Deliver the result ASYNCHRONOUSLY, not inline: a durable `ctx.step` suspends the run right
|
|
30
30
|
// after dispatch, so the result must land AFTER that unwinds (else the resume re-enters
|
|
31
31
|
// mid-suspend). Real brokers are async; this mirrors them.
|
|
32
32
|
setImmediate(() => void this.resultHandler?.(result));
|
|
@@ -101,7 +101,7 @@ export class EventEmitterTransport {
|
|
|
101
101
|
if (!handler)
|
|
102
102
|
return;
|
|
103
103
|
const result = await runStepHandler(task, handler, (beat) => this.heartbeat(beat));
|
|
104
|
-
// Emit the result on a LATER tick: a durable `ctx.
|
|
104
|
+
// Emit the result on a LATER tick: a durable `ctx.step` suspends the run right after dispatch, so
|
|
105
105
|
// the result must land AFTER that unwinds (else the resume re-enters mid-suspend). Real brokers
|
|
106
106
|
// deliver asynchronously; this mirrors them.
|
|
107
107
|
setImmediate(() => this.#emitter.emit(`${RESULT_EVENT}${this.#suffix()}`, result));
|
|
@@ -52,14 +52,52 @@ export interface QueueTransportConfig {
|
|
|
52
52
|
* precedence over `connection`.
|
|
53
53
|
*/
|
|
54
54
|
adapter?: AdapterFactory;
|
|
55
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Steps route BY HANDLER NAME, so this instance serves whatever names it registers.
|
|
57
|
+
* Accepted for back-compat and otherwise ignored. Use {@link partition} for isolation.
|
|
58
|
+
*/
|
|
56
59
|
group?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Isolation partition suffixing every per-handler task queue this worker subscribes to
|
|
62
|
+
* (`<name>@<partition>`), matched against the `partition` a dispatch carries — so one backend can
|
|
63
|
+
* host several worker pools serving the same handler name without their tasks crossing. Unset (or
|
|
64
|
+
* `'default'`) subscribes to the bare handler-name queue.
|
|
65
|
+
*/
|
|
66
|
+
partition?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Logical deployment namespace folded into every queue name, so one backend can host several
|
|
69
|
+
* worker-pool namespaces without their tasks/results crossing. `'default'` (and absent) keeps queue
|
|
70
|
+
* names byte-identical to the un-namespaced scheme. Setting it here is explicit and wins over the
|
|
71
|
+
* engine's propagation of `config.namespace`.
|
|
72
|
+
*/
|
|
73
|
+
namespace?: string;
|
|
57
74
|
/** Queue-name prefix so several apps can share one backend without colliding. Default `durable`. */
|
|
58
75
|
prefix?: string;
|
|
59
76
|
/** Poll interval (ms) for the result/task/heartbeat/control loops. Default 200ms. */
|
|
60
77
|
pollIntervalMs?: number;
|
|
78
|
+
/**
|
|
79
|
+
* How often (ms) the stalled-job reclaim sweep runs. On by default (30s); set `0` to disable it.
|
|
80
|
+
* A coarse background check, not run on every poll tick.
|
|
81
|
+
*/
|
|
82
|
+
stalledCheckIntervalMs?: number;
|
|
83
|
+
/**
|
|
84
|
+
* How old (ms) a claim must be before the reclaim sweep presumes its worker dead and re-delivers the
|
|
85
|
+
* job. Default 30min — deliberately generous, because the claim is never renewed while the worker
|
|
86
|
+
* processes: raise it above your longest step, or a slow step gets double-run.
|
|
87
|
+
*/
|
|
88
|
+
stalledThresholdMs?: number;
|
|
89
|
+
/**
|
|
90
|
+
* How many times one job may be reclaimed before the adapter fails it permanently instead of
|
|
91
|
+
* re-delivering — the bound on a poison job. Default 3.
|
|
92
|
+
*/
|
|
93
|
+
maxStalledCount?: number;
|
|
61
94
|
/** Stable id for this process (stamped on heartbeats / control `from`). Default a random id. */
|
|
62
95
|
instanceId?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Where a poll-loop failure is reported — a job whose handler threw, or a throwing tick. Default
|
|
98
|
+
* `console.error`. Point it at your app's logger to route transport failures into your logs.
|
|
99
|
+
*/
|
|
100
|
+
onError?: (err: unknown) => void;
|
|
63
101
|
}
|
|
64
102
|
/** Options for the aviary-compatible BullMQ transport (the cross-ecosystem interop path). */
|
|
65
103
|
export interface BullMQTransportConfig {
|
|
@@ -86,8 +124,24 @@ export interface BullMQTransportConfig {
|
|
|
86
124
|
}
|
|
87
125
|
/** Options for the DB-table-backed (`@adonisjs/lucid`) transport. */
|
|
88
126
|
export interface DbTransportConfig {
|
|
89
|
-
/**
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated Steps route BY HANDLER NAME, so this instance serves whatever names it registers.
|
|
129
|
+
* Accepted for back-compat and otherwise ignored. Use {@link partition} for isolation.
|
|
130
|
+
*/
|
|
90
131
|
group?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Isolation partition suffixing every per-handler routing token this worker claims
|
|
134
|
+
* (`<name>@<partition>`), matched against the `partition` a dispatch carries. Unset (or `'default'`)
|
|
135
|
+
* claims the bare handler-name tokens.
|
|
136
|
+
*/
|
|
137
|
+
partition?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Logical deployment namespace stamped on every row this instance writes and required on every row
|
|
140
|
+
* it claims, so one set of tables can host several worker-pool namespaces without their
|
|
141
|
+
* tasks/results crossing. `'default'` (and absent) stamps `'default'`. Setting it here is explicit
|
|
142
|
+
* and wins over the engine's propagation of `config.namespace`.
|
|
143
|
+
*/
|
|
144
|
+
namespace?: string;
|
|
91
145
|
/** Lucid connection name to use. Defaults to the `Database` default connection. */
|
|
92
146
|
connection?: string;
|
|
93
147
|
/** Poll interval (ms) for the result/task/heartbeat/control loops. Default 200ms. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/transports/factory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIhE;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,wFAAwF;IACxF,GAAG,EAAE;QACH,SAAS,EAAE;YAAE,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;SAAE,CAAC;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;IACrB,mGAAmG;IACnG,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qEAAqE;AACrE,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4GAA4G;IAC5G,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yEAAyE;IACzE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0GAA0G;IAC1G,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAyDD,eAAO,MAAM,UAAU;IACrB;;;;OAIG;qBACa,qBAAqB,GAAQ,gBAAgB;IAI7D;;;;;OAKG;0BACkB,2BAA2B,GAAQ,gBAAgB;IAUxE,wGAAwG;mBAC1F,oBAAoB,GAAQ,gBAAgB;IA0B1D;;;;;;OAMG;mBACY,qBAAqB,GAAG,gBAAgB;IAevD,mGAAmG;gBACxF,iBAAiB,GAAQ,gBAAgB;CAkBrD,CAAC"}
|
|
@@ -50,9 +50,21 @@ export const transports = {
|
|
|
50
50
|
return new QueueTransport({
|
|
51
51
|
adapter,
|
|
52
52
|
...(config.group !== undefined ? { group: config.group } : {}),
|
|
53
|
+
...(config.partition !== undefined ? { partition: config.partition } : {}),
|
|
54
|
+
...(config.namespace !== undefined ? { namespace: config.namespace } : {}),
|
|
53
55
|
...(config.prefix !== undefined ? { prefix: config.prefix } : {}),
|
|
54
56
|
...(config.pollIntervalMs !== undefined ? { pollIntervalMs: config.pollIntervalMs } : {}),
|
|
57
|
+
...(config.stalledCheckIntervalMs !== undefined
|
|
58
|
+
? { stalledCheckIntervalMs: config.stalledCheckIntervalMs }
|
|
59
|
+
: {}),
|
|
60
|
+
...(config.stalledThresholdMs !== undefined
|
|
61
|
+
? { stalledThresholdMs: config.stalledThresholdMs }
|
|
62
|
+
: {}),
|
|
63
|
+
...(config.maxStalledCount !== undefined
|
|
64
|
+
? { maxStalledCount: config.maxStalledCount }
|
|
65
|
+
: {}),
|
|
55
66
|
...(config.instanceId !== undefined ? { instanceId: config.instanceId } : {}),
|
|
67
|
+
...(config.onError !== undefined ? { onError: config.onError } : {}),
|
|
56
68
|
});
|
|
57
69
|
};
|
|
58
70
|
},
|
|
@@ -85,6 +97,8 @@ export const transports = {
|
|
|
85
97
|
return new DbTransport({
|
|
86
98
|
db,
|
|
87
99
|
...(config.group !== undefined ? { group: config.group } : {}),
|
|
100
|
+
...(config.partition !== undefined ? { partition: config.partition } : {}),
|
|
101
|
+
...(config.namespace !== undefined ? { namespace: config.namespace } : {}),
|
|
88
102
|
...(config.connection !== undefined ? { connectionName: config.connection } : {}),
|
|
89
103
|
...(config.pollIntervalMs !== undefined ? { pollIntervalMs: config.pollIntervalMs } : {}),
|
|
90
104
|
...(config.leaseMs !== undefined ? { leaseMs: config.leaseMs } : {}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../src/transports/factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../src/transports/factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AA4LtE;;;;;GAKG;AACH,KAAK,UAAU,mBAAmB,CAChC,GAAqB,EACrB,UAAmB;IAEnB,MAAM,WAAW,GAAG,GAAG,C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C,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACzF,GAAG,CAAC,MAAM,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACpE,GAAG,CAAC,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC1E,GAAG,CAAC,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC7E,GAAG,CAAC,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAC9E,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonis-agora/durable",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "Durable cross-app workflows for AdonisJS — deterministic replay engine, AdonisJS binding, ace commands, dashboard, OpenTelemetry, Telescope, testing harness and Redis admission, all in one package. Part of the Agora ecosystem.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -167,10 +167,10 @@
|
|
|
167
167
|
"typescript": "5.9.3",
|
|
168
168
|
"vitest": "3.2.7",
|
|
169
169
|
"zod": "3.25.76",
|
|
170
|
-
"@adonis-agora/durable-dashboard": "0.2.
|
|
170
|
+
"@adonis-agora/durable-dashboard": "0.2.1"
|
|
171
171
|
},
|
|
172
172
|
"engines": {
|
|
173
|
-
"node": "
|
|
173
|
+
"node": ">=20.6.0 <23"
|
|
174
174
|
},
|
|
175
175
|
"keywords": [
|
|
176
176
|
"adonisjs",
|