@voltro/workflow 0.74.0 → 0.76.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 +723 -0
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/dist/clusterTestSuite.js +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +3 -3
- package/dist/{src-BnF1JtbZ.js → src-BvXFdkkW.js} +545 -542
- package/package.json +5 -5
package/THIRD-PARTY-NOTICES.md
CHANGED
package/dist/clusterTestSuite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as e, L as t, S as n, g as r, v as i } from "./primitives-bv2JHUfk.js";
|
|
2
|
-
import { r as a } from "./src-
|
|
2
|
+
import { r as a } from "./src-BvXFdkkW.js";
|
|
3
3
|
import { i as o, p as s } from "./cluster-Doetj9Bb.js";
|
|
4
4
|
import { Cron as c, Deferred as l, Effect as u, Fiber as d, Layer as f, Schema as p } from "effect";
|
|
5
5
|
import { SqlClient as m } from "@effect/sql";
|
package/dist/index.d.ts
CHANGED
|
@@ -2527,6 +2527,10 @@ export declare interface ReserveAdmissionSubmissionInput {
|
|
|
2527
2527
|
readonly mode: string | null;
|
|
2528
2528
|
}
|
|
2529
2529
|
|
|
2530
|
+
/** Database-only half, for an atomic queue transfer that already owns the
|
|
2531
|
+
* admission transaction. Never open a nested transaction around this call. */
|
|
2532
|
+
export declare const reserveAdmissionSubmissionInTransaction: (tx: AdmissionDataStore, input: ReserveAdmissionSubmissionInput) => Promise<ReserveAdmissionSubmissionResult>;
|
|
2533
|
+
|
|
2530
2534
|
export declare type ReserveAdmissionSubmissionResult = {
|
|
2531
2535
|
readonly kind: 'reserved';
|
|
2532
2536
|
readonly submission: AdmissionSubmission;
|
|
@@ -3028,9 +3032,9 @@ declare const SubmissionSchema: Schema.Struct<{
|
|
|
3028
3032
|
* later clock therefore gives up sooner-or-equal, never later — which is the
|
|
3029
3033
|
* safe direction for a control whose purpose is to stop spending.
|
|
3030
3034
|
*/
|
|
3031
|
-
export declare const suspendForBudget: (options: SuspendForBudgetOptions) => Effect.Effect<void, BudgetHoldExpired>;
|
|
3035
|
+
export declare const suspendForBudget: <E = never>(options: SuspendForBudgetOptions<E>) => Effect.Effect<void, BudgetHoldExpired | E>;
|
|
3032
3036
|
|
|
3033
|
-
export declare interface SuspendForBudgetOptions {
|
|
3037
|
+
export declare interface SuspendForBudgetOptions<E = never> {
|
|
3034
3038
|
readonly store: DataStore;
|
|
3035
3039
|
readonly budget: string;
|
|
3036
3040
|
readonly tenantId: string | null;
|
|
@@ -3054,7 +3058,7 @@ export declare interface SuspendForBudgetOptions {
|
|
|
3054
3058
|
* facts, and conflating them is how a run resumes into a budget that is still
|
|
3055
3059
|
* exceeded and spends anyway.
|
|
3056
3060
|
*/
|
|
3057
|
-
readonly hasHeadroom: Effect.Effect<boolean>;
|
|
3061
|
+
readonly hasHeadroom: Effect.Effect<boolean, E>;
|
|
3058
3062
|
}
|
|
3059
3063
|
|
|
3060
3064
|
export declare interface SuspendHintInput {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, J as c, K as l, L as u, M as d, O as f, P as p, R as m, S as h, T as g, U as _, V as v, W as y, Y as b, _ as x, a as S, b as C, c as w, d as T, f as E, g as D, h as O, i as k, j as A, k as j, l as M, m as N, n as P, o as F, p as I, q as L, r as R, s as z, t as B, u as V, v as H, w as U, x as W, y as G, z as K } from "./primitives-bv2JHUfk.js";
|
|
2
|
-
import { $ as q, $t as J, A as Y, At as X, B as Z, Bt as Q, C as $, Ct as ee, D as te, Dt as ne, E as re, Et as ie, F as ae, Ft as oe, G as se, Gt as ce, H as le, Ht as ue, I as de, It as fe, J as pe, Jt as me, K as he, Kt as ge, L as _e, Lt as ve, M as ye, Mt as be, N as xe, Nt as Se, O as Ce, Ot as we, P as Te, Pt as Ee, Q as De, Qt as Oe, R as ke, Rt as Ae, S as je,
|
|
3
|
-
import { c as
|
|
4
|
-
export {
|
|
2
|
+
import { $ as q, $t as J, A as Y, At as X, B as Z, Bt as Q, C as $, Ct as ee, D as te, Dt as ne, E as re, Et as ie, F as ae, Ft as oe, G as se, Gt as ce, H as le, Ht as ue, I as de, It as fe, J as pe, Jt as me, K as he, Kt as ge, L as _e, Lt as ve, M as ye, Mt as be, N as xe, Nt as Se, O as Ce, Ot as we, P as Te, Pt as Ee, Q as De, Qt as Oe, R as ke, Rt as Ae, S as je, Sn as Me, St as Ne, T as Pe, Tt as Fe, U as Ie, Ut as Le, V as Re, Vt as ze, W as Be, Wt as Ve, X as He, Xt as Ue, Y as We, Yt as Ge, Z as Ke, Zt as qe, _ as Je, _n as Ye, _t as Xe, a as Ze, an as Qe, at as $e, b as et, bn as tt, bt as nt, c as rt, cn as it, ct as at, d as ot, dn as st, dt as ct, en as lt, et as ut, f as dt, fn as ft, ft as pt, g as mt, gn as ht, gt, h as _t, hn as vt, ht as yt, i as bt, in as xt, it as St, j as Ct, jt as wt, k as Tt, kt as Et, l as Dt, ln as Ot, lt as kt, m as At, mn as jt, mt as Mt, n as Nt, nn as Pt, nt as Ft, o as It, on as Lt, ot as Rt, p as zt, pn as Bt, pt as Vt, q as Ht, qt as Ut, r as Wt, rn as Gt, rt as Kt, s as qt, sn as Jt, st as Yt, t as Xt, tn as Zt, tt as Qt, u as $t, un as en, ut as tn, v as nn, vn as rn, vt as an, w as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zt as hn } from "./src-BvXFdkkW.js";
|
|
3
|
+
import { c as gn, g as _n, l as vn, n as yn, r as bn, t as xn, u as Sn } from "./clusterDiagnostics-Cwt-WFec.js";
|
|
4
|
+
export { Vt as ADMISSIONS_TABLE, dt as BUDGET_HOLDS_TABLE, zt as BudgetHoldExpired, Be as CANCEL_ON_WATERMARK, xn as CLUSTER_REREAD_WINDOW_MS, yn as ClusterDiagnostics, d as CurrentWorkflowExecutionId, p as CurrentWorkflowPatches, U as CurrentWorkflowReplayShape, a as CurrentWorkflowRunId, At as DEFAULT_BUDGET_HOLD_TIMEOUT_MS, se as DEFAULT_COLD_LOOKBACK_MS, _e as DEFAULT_DRAIN_BATCH, he as DEFAULT_EVENT_BATCH, Mt as DEFAULT_LEASE_MS, Xt as DEFAULT_MAX_RUN_RECLAIMS, Nt as DEFAULT_REPLAY_SHAPE_LIMIT, Z as DEFAULT_STALL_AFTER_MS, Re as DEFAULT_STALL_EVENT_LOOKBACK, le as DEFAULT_STALL_RUN_PAGE, ye as DEFAULT_SUSPEND_HINT_MS, f as DEFAULT_WORKFLOW_SCHEDULE_MAX_RUNTIME_MS, v as DEFERRING_CONTROLS, Ht as EVENTS_TABLE, lt as FlowControlKeyError, yt as PAUSES_TABLE, gt as PENDING_TABLE, pe as WATERMARKS_TABLE, B as WorkflowFlowControlProperty, P as WorkflowMessagesProperty, u as WorkflowRunRecorder, j as WorkflowScheduleProperty, m as WorkflowStepInterceptorTag, R as WorkflowVersionTypeId, k as WorkflowWorkerLayerTypeId, _t as _voltroBudgetHoldsTable, Ot as _voltroWorkflowAdmissionLocksTable, en as _voltroWorkflowAdmissionsTable, st as _voltroWorkflowControlRequestsTable, ft as _voltroWorkflowFailureReportsTable, Bt as _voltroWorkflowParentClosuresTable, jt as _voltroWorkflowPausesTable, vt as _voltroWorkflowPendingTable, fn as _voltroWorkflowRunEventsTable, tt as _voltroWorkflowRunStepsTable, ln as _voltroWorkflowRunsTable, rn as _voltroWorkflowStartContextsTable, ht as _voltroWorkflowStartReceiptsTable, Ye as _voltroWorkflowSubmissionsTable, ut as _voltroWorkflowWatermarksTable, ke as acceptAdmissionSubmission, gn as acceptWorkflowControlInTransaction, ze as acknowledgeAdmissionSubmission, Qt as admitStart, Xe as allIntents, s as assertConsistentPools, L as attachPreparedWorkflowExecution, Y as awaitEvent, Ct as awaitSignal, $ as awaitSignalSuspending, ot as awaitUpdate, ue as beginAdmissionSubmissionDispatchInTransaction, vn as beginWorkflowControlDispatchInTransaction, Sn as bindWorkflowResumeJournalInTransaction, ve as bindWorkflowStartReceipts, mt as budgetHoldGeneration, Je as budgetHoldKey, nn as budgetHoldSignalName, $e as cancelQueuedWorkflowStartInTransaction, at as cancelSuspendedWorkflowRunInTransaction, Zt as comparePendingOrder, on as completeSuspendingSignal, kt as completeWorkflowRunGenerationInTransaction, an as deadLetterIntent, Pt as decideAdmission, _ as deferringControlsOf, pn as deleteIntent, bn as describeStalledRun, nt as discardIntent, un as discardIntentInTransaction, mn as drainTick, Ne as dueIntents, S as durableClock, F as durableQueue, z as durableQueueModule, w as durableRateLimiterModule, tn as enterWorkflowRunGenerationInTransaction, ee as evaluateAdmission, c as executePreparedWorkflow, K as getCurrentWorkflowExecutionId, t as getCurrentWorkflowRunId, M as getWorkflowFlowControl, e as getWorkflowSchedule, V as getWorkflowVersionMetadata, Ue as handoffWorkflowFailureInTransaction, y as hasCancelOn, o as hasFlowControl, b as hasPreparedWorkflowExecution, dn as heldBudgets, Me as inMemoryWorkflowEngineLayer, $t as inspectWorkflow, Gt as isFinishExpired, xt as isStartExpired, T as isWorkflowWorkerLayer, Ft as linkExecution, Dt as makeInMemoryRecorder, g as makeReplayShapeTracker, Wt as makeWorkflowRunRecorder, re as makeWorkflowUpdateId, xe as maybeHintSuspendingSignal, De as newestEventAt, Qe as nextSlotAt, i as nondeterminismEventPayload, bt as normaliseWorkflowPatches, Le as noteAdmissionSubmissionFailure, sn as noteIntentAttempt, Fe as parkDelayedStart, E as patch, ie as pauseWorkflow, Ve as pendingAdmissionSubmissions, et as pendingBudgetHolds, ne as pendingSlotId, we as pendingWindow, Et as persistDefer, q as planCancellations, Lt as pooledConcurrencyKey, ce as prepareAdmissionSubmissionExecutionInTransaction, I as processQueue, X as pruneAdmissions, N as queueWorker, Yt as queuedCancellationRequestsTable, O as rateLimit, wt as readAdmissionState, ge as readAdmissionSubmission, be as readPausedWorkflows, Rt as readQueuedWorkflowCancellationInTransaction, We as readWatermark, _n as readWorkflowControlInTransaction, Oe as readWorkflowFailureRecord, Ae as readWorkflowStartReceipt, qe as reconcileWorkflowFailureInTransaction, Se as recordAdmission, J as recordWorkflowFailureInTransaction, hn as recordWorkflowStartReceipt, Ut as rejectAdmissionSubmissionInTransaction, cn as releaseBudgetHolds, Ee as releaseLease, r as reportNondeterminism, me as reserveAdmissionSubmission, Ge as reserveAdmissionSubmissionInTransaction, Te as resetSuspendHintsForTest, Jt as resolveAdmissionKeys, Ze as resolveRunGuardTuning, ae as resolveSuspendHintMs, te as resolveWorkflowMessageRun, Q as resolveWorkflowStartReceipt, oe as resumeWorkflow, fe as retryDeadLetterIntent, Ce as sendWorkflowSignal, Tt as sendWorkflowUpdate, It as serialiseWorkflowRowForWire, de as setSuspendSignalHintMs, D as sleep, x as sleepUntil, pt as stageWorkflowParentClosureInTransaction, H as step, G as stepIdempotencyKey, C as stepModule, je as suspendForBudget, Pe as suspendingSignalDeferredName, He as sweepCancelOn, Ie as sweepStalledRuns, Kt as takeAdmittedSubmissionInTransaction, St as takePendingAdmissionSubmission, qt as truncateWorkflowValue, l as validateFlowControl, A as validateWorkflowSchedule, it as withAdmissionTransaction, W as withCompensation, h as workflow, n as workflowModule, ct as workflowRestartRequestsTable, rt as wrapWorkflowExecuteWithRunRecording, Ke as writeWatermark };
|