@dudousxd/nestjs-durable-core 0.85.12 → 0.86.1
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/index.cjs +202 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +67 -3
- package/dist/index.d.ts +67 -3
- package/dist/index.js +199 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -902,7 +902,8 @@ type RunStatus =
|
|
|
902
902
|
* are actually published (a legacy/pre-handshake fleet skips the guard, design §7.7).
|
|
903
903
|
*/
|
|
904
904
|
| 'blocked' | 'completed' | 'failed' | 'cancelled'
|
|
905
|
-
/** Dead-letter: recovery gave up after `maxRecoveryAttempts` (a poison pill)
|
|
905
|
+
/** Dead-letter: recovery gave up after `maxRecoveryAttempts` (a poison pill), or no instance has
|
|
906
|
+
* the run's workflow version registered past `unregisteredWorkflowGraceMs`. Terminal; inspect it. */
|
|
906
907
|
| 'dead';
|
|
907
908
|
/** One execution of a workflow. The unit of durability and the unit shown in the dashboard. */
|
|
908
909
|
interface WorkflowRun {
|
|
@@ -4478,6 +4479,17 @@ interface WorkflowEngineDeps {
|
|
|
4478
4479
|
* Omit for unlimited (the default — recovery always retries).
|
|
4479
4480
|
*/
|
|
4480
4481
|
maxRecoveryAttempts?: number | undefined;
|
|
4482
|
+
/**
|
|
4483
|
+
* How long (ms) a run may stay due while NO instance can resume it because its workflow version is
|
|
4484
|
+
* not registered anywhere, before it is moved to `dead` (code `workflow_not_registered`). A rolling
|
|
4485
|
+
* deploy skips such a run on purpose (skew protection): the pod still on the prior version picks it
|
|
4486
|
+
* up within seconds. A run that stays unresumable far past that — its workflow was renamed or
|
|
4487
|
+
* deleted — would otherwise be retried and logged on every tick forever. The clock starts when the
|
|
4488
|
+
* run became due (its `wakeAt` for a parked run, its last update otherwise), so a long sleep is not
|
|
4489
|
+
* counted. Default 24h; `0` disables (skip forever). A non-finite or negative value falls back to
|
|
4490
|
+
* the default.
|
|
4491
|
+
*/
|
|
4492
|
+
unregisteredWorkflowGraceMs?: number | undefined;
|
|
4481
4493
|
/**
|
|
4482
4494
|
* Opt-in liveness deadline (ms) for a remote workflow `advance`. If the worker neither returns a
|
|
4483
4495
|
* decision NOR sends a run-scoped {@link Heartbeat} within this window, the engine presumes it dead:
|
|
@@ -4629,6 +4641,13 @@ interface ListStalledRunsOptions {
|
|
|
4629
4641
|
/** Evaluate as of this clock time. Defaults to the engine clock. */
|
|
4630
4642
|
now?: number | undefined;
|
|
4631
4643
|
}
|
|
4644
|
+
/**
|
|
4645
|
+
* Thrown by {@link WorkflowEngine.resume} when nothing registered here (nor an inherited or
|
|
4646
|
+
* convention route) can run the run's pinned `workflow@version`.
|
|
4647
|
+
*/
|
|
4648
|
+
declare class WorkflowNotRegistered extends Error {
|
|
4649
|
+
constructor(workflow: string, version: string);
|
|
4650
|
+
}
|
|
4632
4651
|
/**
|
|
4633
4652
|
* The orchestrator. Owns workflow state and replays runs deterministically: each step's
|
|
4634
4653
|
* result is checkpointed, so on resume a completed step returns its saved output instead of
|
|
@@ -4651,6 +4670,7 @@ declare class WorkflowEngine {
|
|
|
4651
4670
|
*/
|
|
4652
4671
|
private readonly ownLeaseCutoffMs;
|
|
4653
4672
|
private readonly maxRecoveryAttempts?;
|
|
4673
|
+
private readonly unregisteredWorkflowGraceMs;
|
|
4654
4674
|
private readonly remoteAdvanceSilenceMs?;
|
|
4655
4675
|
private readonly reconcileMs;
|
|
4656
4676
|
private readonly timerBatchSize;
|
|
@@ -5372,6 +5392,33 @@ declare class WorkflowEngine {
|
|
|
5372
5392
|
* result to skip the resume, or `undefined` to proceed.
|
|
5373
5393
|
*/
|
|
5374
5394
|
private countRecovery;
|
|
5395
|
+
/** Tell everyone a run was just written `dead`: events, dead-letter routing, a waiting parent. */
|
|
5396
|
+
private announceDead;
|
|
5397
|
+
/** The synchronous half of {@link canResolveWorkflow}: callers check it first, so a registered run
|
|
5398
|
+
* pays no await (same rule as {@link resume}). */
|
|
5399
|
+
private isRegisteredHere;
|
|
5400
|
+
/**
|
|
5401
|
+
* Whether this instance can run `run`'s pinned `workflow@version`: registered here, inherited from a
|
|
5402
|
+
* remote ancestor, or routed by convention to a live worker group (the lookup {@link resume} does).
|
|
5403
|
+
*/
|
|
5404
|
+
private canResolveWorkflow;
|
|
5405
|
+
/**
|
|
5406
|
+
* A run whose lease this instance holds but whose `workflow@version` nothing here can run (see
|
|
5407
|
+
* {@link WorkflowNotRegistered}). Within {@link unregisteredWorkflowGraceMs} of becoming due it is a
|
|
5408
|
+
* rolling deploy's skew: the lease is released at once so the pod that still has the version takes
|
|
5409
|
+
* the run now, not after the lease expires. Past it, the workflow is gone from the whole fleet (a
|
|
5410
|
+
* capable pod would have taken the run long ago): dead-letter it.
|
|
5411
|
+
*
|
|
5412
|
+
* The age is read off `updatedAt` / `wakeAt`, so every path that would touch either (a recovery
|
|
5413
|
+
* count, a re-pend, a hand-off's lease-long `wakeAt`) must call this BEFORE writing — otherwise an
|
|
5414
|
+
* orphan never ages.
|
|
5415
|
+
*
|
|
5416
|
+
* Returns the `dead` result, `null` when the run left its status meanwhile (a lease-free
|
|
5417
|
+
* `cancel()`: settled, not ours to touch), or `undefined` when it was left for later.
|
|
5418
|
+
*/
|
|
5419
|
+
private settleUnregistered;
|
|
5420
|
+
/** Log a run skipped for an unregistered workflow — still there, still not progressing. */
|
|
5421
|
+
private logUnregisteredSkip;
|
|
5375
5422
|
/**
|
|
5376
5423
|
* Resume every suspended run whose durable timer is due. Call periodically (a poller) and on
|
|
5377
5424
|
* boot. A run still not due re-suspends cheaply without running new work.
|
|
@@ -5473,7 +5520,8 @@ declare class WorkflowEngine {
|
|
|
5473
5520
|
* Resume each run only if this instance can acquire its recovery lease — so when several
|
|
5474
5521
|
* replicas recover or poll at once, each run is picked up by exactly one of them.
|
|
5475
5522
|
*
|
|
5476
|
-
* A run this instance cannot resume is SKIPPED, not allowed to abort the batch
|
|
5523
|
+
* A run this instance cannot resume is SKIPPED, not allowed to abort the batch (a run whose workflow
|
|
5524
|
+
* stays registered nowhere past `unregisteredWorkflowGraceMs` is dead-lettered instead). The canonical
|
|
5477
5525
|
* case is skew protection: mid-rolling-deploy a pod leases a run whose workflow it does not have
|
|
5478
5526
|
* and `resume` throws by design — but the rest of the batch is runs it can drive perfectly well,
|
|
5479
5527
|
* and every caller here is a recovery sweep. Letting the first such run end the loop means one
|
|
@@ -7844,6 +7892,22 @@ declare function withSingletonTracked(tags: string[] | undefined): string[];
|
|
|
7844
7892
|
* window is the head of the FIFO, admitted next anyway); with a larger limit it can only delay one.
|
|
7845
7893
|
*/
|
|
7846
7894
|
declare function legacySingletonHolders(active: WorkflowRun[], runId: string, limit: number): WorkflowRun[];
|
|
7895
|
+
/**
|
|
7896
|
+
* The size of one locking statement of {@link singletonClaimantIds}. Keep a store's chunks in the
|
|
7897
|
+
* order the database listed the ids: every claim then takes shared rows in one global order.
|
|
7898
|
+
*/
|
|
7899
|
+
declare const SINGLETON_LOCK_CHUNK = 500;
|
|
7900
|
+
/**
|
|
7901
|
+
* The runs a claim must lock: the active runs sharing its exact tag, in the order given. Admission
|
|
7902
|
+
* reads no other run, so claims on different keys need not wait for each other. Read them BEFORE the
|
|
7903
|
+
* admission transaction opens: on MySQL's REPEATABLE READ an earlier plain read would freeze the
|
|
7904
|
+
* snapshot the admission decision reads. A run that a later claim adds is still safe: that claim
|
|
7905
|
+
* started after this one's run existed, so its own lock set holds this run and the two serialize.
|
|
7906
|
+
*/
|
|
7907
|
+
declare function singletonClaimantIds(rows: readonly {
|
|
7908
|
+
id: string;
|
|
7909
|
+
tags?: unknown;
|
|
7910
|
+
}[], tag: string): string[];
|
|
7847
7911
|
/** Call only inside a store's atomic admission transaction/critical section. */
|
|
7848
7912
|
declare function singletonAdmissionTags(runs: WorkflowRun[], runId: string, tag: string, workflow: string, limit: number): string[] | null;
|
|
7849
7913
|
/** Terminal runs release admission, including when later resumed directly rather than requeued. */
|
|
@@ -7856,4 +7920,4 @@ declare function singletonAdmissionDenialPatch(runs: WorkflowRun[], runId: strin
|
|
|
7856
7920
|
updatedAt: Date;
|
|
7857
7921
|
} | undefined;
|
|
7858
7922
|
|
|
7859
|
-
export { type AccumulatorHost, type Admission, type AdmissionBackend, type AdmissionItem, type AllOptions, type AllSettledOptions, type AllStepsOptions, type AllStepsSettledOptions, type AnnouncedWorkflow, type AnnouncementEvidence, type AttributeFilter, type AttributeOp, type AttributePredicateOperand, type AttributeValue, type BackoffStrategy, type BlockedDispatch, type BlockedResolution, type BufferedSignalRow, CHILD_EDGE_PREFIXES, CONTROL_FLOW_SIGNAL, CORE_ORIGIN, CURRENT_PROTOCOL_VERSION, type CapabilityRequirement, type CheckpointAggregatingStore, type CheckpointNameKind, type CheckpointQuery, type CheckpointStat, type ChildCallOptions, type ChildWait, CodecStateStore, type CodecStateStoreOptions, type ConcurrencyConfig, ConcurrencyLimitError, type ConcurrencyQuota, ContinueAsNew, type ControlMessage, type ControlPlane, DEFAULT_CONCURRENCY_STATUSES, DEFAULT_PARTITION, DEFAULT_STALLED_AFTER_MS, DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL, DURABLE_STEP_CONFIG, DURABLE_STEP_NAME, type Disagreement, type DispatchDiagnostics, type DispatchPlan, type DurableExecution, type DurableExecutionWrapper, type DurableTopology, type DurableWebhook, DurableWorkflow, type DynamicWorkflowCtx, ENGINE_MINTED_TAG_PREFIXES, ENTITY_WORKFLOW, EVENT_BUFFER_SCAN_LIMIT, EVENT_TOKEN_PREFIX, type EngineEvent, type EngineEventType, type EngineListener, Entities, type EntityConfig, type EntityHandler, type EntityHost, type EntityWorkflowHost, EventAccumulators, type EventBatchConfig, FAN_SUMMARY_FAILURES, type FanJoin, type FanPage, type FanPageQuery, type FanSummary, type FanWait, FatalError, type FindStalledRunsOptions, GatherError, type GatherItemFailure, type GroupHealth, HANDOFF_SEQ_BASE, type Heartbeat, type HeartbeatSighting, type HeartbeatStatus, type HistoryEvent, InMemoryAdmissionBackend, InMemoryRunQueue, InMemoryStateStore, InMemoryTransport, type InferSearchAttributes, LEGACY_V1_CAPABILITIES, LEGACY_V1_PROTOCOL, type ListStalledRunsOptions, type MetricsCollector, type MetricsSnapshot, type NamedTransport, type NegotiateOptions, type NegotiationOutcome, type NegotiationReason, type NegotiationResult, NestedWorkflowCallError, NonDeterminismError, type OnErrorInput, type OnErrorRoute, type OwnedLeaseReclaim, type PartitionSighting, type PayloadCodec, type QueueConfig, QueueController, REMOTE_EVENT, RUN_HISTORY_FIXTURE_VERSION, RUN_VALUE_FACET_LIMIT, RUN_VALUE_FACET_SCAN, type RawWorkerDescriptor, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, RemoteWorkflowTimeout, type RetentionPolicy, type RoutableDispatch, type RoutableResolution, type RoutingResolution, type RunAttributeRow, type RunConsumerOptions, type RunDetail, type RunDetailOptions, type RunDispatch, type RunDispatcher, type RunFacetQuery, type RunFacetRow, RunGateway, type RunListItem, type RunQuery, type RunQueueOptions, type RunReply, type RunReplyResult, type RunRequest, type RunRequestKind, type RunResult, type RunSchedulesOptions, type RunScope, type RunStatus, type RunValueAxis, type RunValueFacetOptions, type RunValueFacetOrder, type RunValueFacetRow, type RunWaiting, SINGLETON_ACTIVE_STATUSES, SINGLETON_ADMITTED_TAG, SINGLETON_RESERVED_TAGS, SINGLETON_TRACKED_TAG, STATE_STORE, STATE_STORE_CANONICAL, SUMMARY_CHILD_LIMIT, type ScalarAttributeFilter, ScheduleAlreadyExistsError, ScheduleClient, type ScheduleClientOptions, type ScheduleDescription, type ScheduleHost, type ScheduleListQuery, ScheduleNotFoundError, type ScheduleOptions, type ScheduleQuery, type ScheduleRecord, type ScheduledWorkflow, type SchemaIssue, type SchemaValidationCode, SchemaValidationError, type SearchAttributes, type SearchAttributesSchema, type Settled, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StalePendingStep, type StalledRunInfo, StandardSchemaV1, type StartOptions, type StartRunMessage, type StateStore, type StepCheckpoint, type StepConfig, type StepDef, type StepDispatchOpts, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepRef, type StepResult, type StepScope, type StepSettlement, type StepUndo, type StoreTransaction, type SubProcessHandle, TERMINAL_RUN_STATUSES, TRANSPORT, TRANSPORT_CANONICAL, type TenantEvent, type TenantTokenSource, type TenantVerifier, type Transport, type UndoOf, type UpdateResult, type UpdateValidator, VERSION_UNDECLARED_TAG, type VerifiedTenant, WORKFLOW_NAME_KEY, type WireDates, type WorkerAdjust, type WorkerConcurrencyStatus, type WorkerDescriptor, type WorkerHeartbeat, type WorkerLifecycle, type WorkerStatus, type WorkflowAnnouncement, WorkflowBlocked, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, type WorkflowDirectory, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowHandler, type WorkflowInputOf, type WorkflowOutputOf, type WorkflowRef, type WorkflowRegistration, type WorkflowRun, type WorkflowStartClient, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, aggregateAnnouncements, aggregatesCheckpoints, announcementsOf, applyAttributeQuery, assertConcurrency, assertRoutes, attributeColumnFor, attributeOperand, attributePredicateOperands, axisIsRunColumn, bindWorkflowClass, breakpointToken, buildWorkflowDirectory, canRoute, capableWorkers, checkpointNameKind, checkpointStatsOf, childIdsOf, classifyWaiterToken, clearDurableExecutionWrappers, clearTerminalSingletonAdmission, codeAndDetails, codeOf, collectMetrics, concurrencyTag, controlPlaneDescriptor, countRuns, coveredTokens, createStepLogger, currentStep, currentStepScope, currentWorkflowCtx, debug, describeWorker, descriptorHash, detailsOf, error, etagMatches, eventMatchOf, eventMatches, eventNameOf, eventPrefix, eventToken, facetOrigin, fanPageBounds, fanPageEtag, findStalledRuns, foldedCount, getRunsByIds, handoffHandlerId, handoffName, hasDurableExecutionWrappers, heartbeatStatus, hmacTenantVerifier, indexWaitersByRun, info, isEngineMintedTag, isEventToken, isFailedMember, isLegacyDescriptor, isNonEmptyRunScope, isRemoteEvent, isWorkflowControlFlowSignal, legacySingletonHolders, listSignalWaitersOfRuns, liveHandoff, log, markRemoteEvent, matchesAttributes, mergeRunFacetRows, mergeRunValueFacetRows, missingCapabilities, negotiate, nextCronFireMs, normalizeAttributeRows, normalizeDescriptor, observedAnnouncements, onErrorRunId, pageFan, pageFanFromStore, parentRunIdOf, parseDuration, parseWebhookToken, partitionOfToken, planDispatch, poolNamespace, prevCronFireMs, queryCheckpointsOf, readRunsByIds, readSearchAttributes, requiredCapabilities, resolveConcurrency, resolveRouting, resolveRunWaiting, resolveTenantToken, resolveWireTenant, retiredHandoffName, routeFor, runDetailEtag, runDurableExecution, runInStepLogger, runInStepScope, runInWorkflowCtx, runOutsideWorkflowCtx, runSchedules, runStepHandler, runValueFacetsFromRuns, sanitizeQueueToken, scheduleRunIdAt, scheduledRunId, signTenantToken, singletonAdmissionDenialPatch, singletonAdmissionTags, sqlComparator, stepConfigOf, stepId, stepNameOf, sub, subEvent, subProcess, summarizeFan, summarizeRunFromStore, summarizeTimeline, tenantGroup, useDurableExecution, warn, withSingletonTracked, withoutSingletonMarkers, workflowName };
|
|
7923
|
+
export { type AccumulatorHost, type Admission, type AdmissionBackend, type AdmissionItem, type AllOptions, type AllSettledOptions, type AllStepsOptions, type AllStepsSettledOptions, type AnnouncedWorkflow, type AnnouncementEvidence, type AttributeFilter, type AttributeOp, type AttributePredicateOperand, type AttributeValue, type BackoffStrategy, type BlockedDispatch, type BlockedResolution, type BufferedSignalRow, CHILD_EDGE_PREFIXES, CONTROL_FLOW_SIGNAL, CORE_ORIGIN, CURRENT_PROTOCOL_VERSION, type CapabilityRequirement, type CheckpointAggregatingStore, type CheckpointNameKind, type CheckpointQuery, type CheckpointStat, type ChildCallOptions, type ChildWait, CodecStateStore, type CodecStateStoreOptions, type ConcurrencyConfig, ConcurrencyLimitError, type ConcurrencyQuota, ContinueAsNew, type ControlMessage, type ControlPlane, DEFAULT_CONCURRENCY_STATUSES, DEFAULT_PARTITION, DEFAULT_STALLED_AFTER_MS, DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL, DURABLE_STEP_CONFIG, DURABLE_STEP_NAME, type Disagreement, type DispatchDiagnostics, type DispatchPlan, type DurableExecution, type DurableExecutionWrapper, type DurableTopology, type DurableWebhook, DurableWorkflow, type DynamicWorkflowCtx, ENGINE_MINTED_TAG_PREFIXES, ENTITY_WORKFLOW, EVENT_BUFFER_SCAN_LIMIT, EVENT_TOKEN_PREFIX, type EngineEvent, type EngineEventType, type EngineListener, Entities, type EntityConfig, type EntityHandler, type EntityHost, type EntityWorkflowHost, EventAccumulators, type EventBatchConfig, FAN_SUMMARY_FAILURES, type FanJoin, type FanPage, type FanPageQuery, type FanSummary, type FanWait, FatalError, type FindStalledRunsOptions, GatherError, type GatherItemFailure, type GroupHealth, HANDOFF_SEQ_BASE, type Heartbeat, type HeartbeatSighting, type HeartbeatStatus, type HistoryEvent, InMemoryAdmissionBackend, InMemoryRunQueue, InMemoryStateStore, InMemoryTransport, type InferSearchAttributes, LEGACY_V1_CAPABILITIES, LEGACY_V1_PROTOCOL, type ListStalledRunsOptions, type MetricsCollector, type MetricsSnapshot, type NamedTransport, type NegotiateOptions, type NegotiationOutcome, type NegotiationReason, type NegotiationResult, NestedWorkflowCallError, NonDeterminismError, type OnErrorInput, type OnErrorRoute, type OwnedLeaseReclaim, type PartitionSighting, type PayloadCodec, type QueueConfig, QueueController, REMOTE_EVENT, RUN_HISTORY_FIXTURE_VERSION, RUN_VALUE_FACET_LIMIT, RUN_VALUE_FACET_SCAN, type RawWorkerDescriptor, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, RemoteWorkflowTimeout, type RetentionPolicy, type RoutableDispatch, type RoutableResolution, type RoutingResolution, type RunAttributeRow, type RunConsumerOptions, type RunDetail, type RunDetailOptions, type RunDispatch, type RunDispatcher, type RunFacetQuery, type RunFacetRow, RunGateway, type RunListItem, type RunQuery, type RunQueueOptions, type RunReply, type RunReplyResult, type RunRequest, type RunRequestKind, type RunResult, type RunSchedulesOptions, type RunScope, type RunStatus, type RunValueAxis, type RunValueFacetOptions, type RunValueFacetOrder, type RunValueFacetRow, type RunWaiting, SINGLETON_ACTIVE_STATUSES, SINGLETON_ADMITTED_TAG, SINGLETON_LOCK_CHUNK, SINGLETON_RESERVED_TAGS, SINGLETON_TRACKED_TAG, STATE_STORE, STATE_STORE_CANONICAL, SUMMARY_CHILD_LIMIT, type ScalarAttributeFilter, ScheduleAlreadyExistsError, ScheduleClient, type ScheduleClientOptions, type ScheduleDescription, type ScheduleHost, type ScheduleListQuery, ScheduleNotFoundError, type ScheduleOptions, type ScheduleQuery, type ScheduleRecord, type ScheduledWorkflow, type SchemaIssue, type SchemaValidationCode, SchemaValidationError, type SearchAttributes, type SearchAttributesSchema, type Settled, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StalePendingStep, type StalledRunInfo, StandardSchemaV1, type StartOptions, type StartRunMessage, type StateStore, type StepCheckpoint, type StepConfig, type StepDef, type StepDispatchOpts, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepRef, type StepResult, type StepScope, type StepSettlement, type StepUndo, type StoreTransaction, type SubProcessHandle, TERMINAL_RUN_STATUSES, TRANSPORT, TRANSPORT_CANONICAL, type TenantEvent, type TenantTokenSource, type TenantVerifier, type Transport, type UndoOf, type UpdateResult, type UpdateValidator, VERSION_UNDECLARED_TAG, type VerifiedTenant, WORKFLOW_NAME_KEY, type WireDates, type WorkerAdjust, type WorkerConcurrencyStatus, type WorkerDescriptor, type WorkerHeartbeat, type WorkerLifecycle, type WorkerStatus, type WorkflowAnnouncement, WorkflowBlocked, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, type WorkflowDirectory, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowHandler, type WorkflowInputOf, WorkflowNotRegistered, type WorkflowOutputOf, type WorkflowRef, type WorkflowRegistration, type WorkflowRun, type WorkflowStartClient, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, aggregateAnnouncements, aggregatesCheckpoints, announcementsOf, applyAttributeQuery, assertConcurrency, assertRoutes, attributeColumnFor, attributeOperand, attributePredicateOperands, axisIsRunColumn, bindWorkflowClass, breakpointToken, buildWorkflowDirectory, canRoute, capableWorkers, checkpointNameKind, checkpointStatsOf, childIdsOf, classifyWaiterToken, clearDurableExecutionWrappers, clearTerminalSingletonAdmission, codeAndDetails, codeOf, collectMetrics, concurrencyTag, controlPlaneDescriptor, countRuns, coveredTokens, createStepLogger, currentStep, currentStepScope, currentWorkflowCtx, debug, describeWorker, descriptorHash, detailsOf, error, etagMatches, eventMatchOf, eventMatches, eventNameOf, eventPrefix, eventToken, facetOrigin, fanPageBounds, fanPageEtag, findStalledRuns, foldedCount, getRunsByIds, handoffHandlerId, handoffName, hasDurableExecutionWrappers, heartbeatStatus, hmacTenantVerifier, indexWaitersByRun, info, isEngineMintedTag, isEventToken, isFailedMember, isLegacyDescriptor, isNonEmptyRunScope, isRemoteEvent, isWorkflowControlFlowSignal, legacySingletonHolders, listSignalWaitersOfRuns, liveHandoff, log, markRemoteEvent, matchesAttributes, mergeRunFacetRows, mergeRunValueFacetRows, missingCapabilities, negotiate, nextCronFireMs, normalizeAttributeRows, normalizeDescriptor, observedAnnouncements, onErrorRunId, pageFan, pageFanFromStore, parentRunIdOf, parseDuration, parseWebhookToken, partitionOfToken, planDispatch, poolNamespace, prevCronFireMs, queryCheckpointsOf, readRunsByIds, readSearchAttributes, requiredCapabilities, resolveConcurrency, resolveRouting, resolveRunWaiting, resolveTenantToken, resolveWireTenant, retiredHandoffName, routeFor, runDetailEtag, runDurableExecution, runInStepLogger, runInStepScope, runInWorkflowCtx, runOutsideWorkflowCtx, runSchedules, runStepHandler, runValueFacetsFromRuns, sanitizeQueueToken, scheduleRunIdAt, scheduledRunId, signTenantToken, singletonAdmissionDenialPatch, singletonAdmissionTags, singletonClaimantIds, sqlComparator, stepConfigOf, stepId, stepNameOf, sub, subEvent, subProcess, summarizeFan, summarizeRunFromStore, summarizeTimeline, tenantGroup, useDurableExecution, warn, withSingletonTracked, withoutSingletonMarkers, workflowName };
|
package/dist/index.d.ts
CHANGED
|
@@ -902,7 +902,8 @@ type RunStatus =
|
|
|
902
902
|
* are actually published (a legacy/pre-handshake fleet skips the guard, design §7.7).
|
|
903
903
|
*/
|
|
904
904
|
| 'blocked' | 'completed' | 'failed' | 'cancelled'
|
|
905
|
-
/** Dead-letter: recovery gave up after `maxRecoveryAttempts` (a poison pill)
|
|
905
|
+
/** Dead-letter: recovery gave up after `maxRecoveryAttempts` (a poison pill), or no instance has
|
|
906
|
+
* the run's workflow version registered past `unregisteredWorkflowGraceMs`. Terminal; inspect it. */
|
|
906
907
|
| 'dead';
|
|
907
908
|
/** One execution of a workflow. The unit of durability and the unit shown in the dashboard. */
|
|
908
909
|
interface WorkflowRun {
|
|
@@ -4478,6 +4479,17 @@ interface WorkflowEngineDeps {
|
|
|
4478
4479
|
* Omit for unlimited (the default — recovery always retries).
|
|
4479
4480
|
*/
|
|
4480
4481
|
maxRecoveryAttempts?: number | undefined;
|
|
4482
|
+
/**
|
|
4483
|
+
* How long (ms) a run may stay due while NO instance can resume it because its workflow version is
|
|
4484
|
+
* not registered anywhere, before it is moved to `dead` (code `workflow_not_registered`). A rolling
|
|
4485
|
+
* deploy skips such a run on purpose (skew protection): the pod still on the prior version picks it
|
|
4486
|
+
* up within seconds. A run that stays unresumable far past that — its workflow was renamed or
|
|
4487
|
+
* deleted — would otherwise be retried and logged on every tick forever. The clock starts when the
|
|
4488
|
+
* run became due (its `wakeAt` for a parked run, its last update otherwise), so a long sleep is not
|
|
4489
|
+
* counted. Default 24h; `0` disables (skip forever). A non-finite or negative value falls back to
|
|
4490
|
+
* the default.
|
|
4491
|
+
*/
|
|
4492
|
+
unregisteredWorkflowGraceMs?: number | undefined;
|
|
4481
4493
|
/**
|
|
4482
4494
|
* Opt-in liveness deadline (ms) for a remote workflow `advance`. If the worker neither returns a
|
|
4483
4495
|
* decision NOR sends a run-scoped {@link Heartbeat} within this window, the engine presumes it dead:
|
|
@@ -4629,6 +4641,13 @@ interface ListStalledRunsOptions {
|
|
|
4629
4641
|
/** Evaluate as of this clock time. Defaults to the engine clock. */
|
|
4630
4642
|
now?: number | undefined;
|
|
4631
4643
|
}
|
|
4644
|
+
/**
|
|
4645
|
+
* Thrown by {@link WorkflowEngine.resume} when nothing registered here (nor an inherited or
|
|
4646
|
+
* convention route) can run the run's pinned `workflow@version`.
|
|
4647
|
+
*/
|
|
4648
|
+
declare class WorkflowNotRegistered extends Error {
|
|
4649
|
+
constructor(workflow: string, version: string);
|
|
4650
|
+
}
|
|
4632
4651
|
/**
|
|
4633
4652
|
* The orchestrator. Owns workflow state and replays runs deterministically: each step's
|
|
4634
4653
|
* result is checkpointed, so on resume a completed step returns its saved output instead of
|
|
@@ -4651,6 +4670,7 @@ declare class WorkflowEngine {
|
|
|
4651
4670
|
*/
|
|
4652
4671
|
private readonly ownLeaseCutoffMs;
|
|
4653
4672
|
private readonly maxRecoveryAttempts?;
|
|
4673
|
+
private readonly unregisteredWorkflowGraceMs;
|
|
4654
4674
|
private readonly remoteAdvanceSilenceMs?;
|
|
4655
4675
|
private readonly reconcileMs;
|
|
4656
4676
|
private readonly timerBatchSize;
|
|
@@ -5372,6 +5392,33 @@ declare class WorkflowEngine {
|
|
|
5372
5392
|
* result to skip the resume, or `undefined` to proceed.
|
|
5373
5393
|
*/
|
|
5374
5394
|
private countRecovery;
|
|
5395
|
+
/** Tell everyone a run was just written `dead`: events, dead-letter routing, a waiting parent. */
|
|
5396
|
+
private announceDead;
|
|
5397
|
+
/** The synchronous half of {@link canResolveWorkflow}: callers check it first, so a registered run
|
|
5398
|
+
* pays no await (same rule as {@link resume}). */
|
|
5399
|
+
private isRegisteredHere;
|
|
5400
|
+
/**
|
|
5401
|
+
* Whether this instance can run `run`'s pinned `workflow@version`: registered here, inherited from a
|
|
5402
|
+
* remote ancestor, or routed by convention to a live worker group (the lookup {@link resume} does).
|
|
5403
|
+
*/
|
|
5404
|
+
private canResolveWorkflow;
|
|
5405
|
+
/**
|
|
5406
|
+
* A run whose lease this instance holds but whose `workflow@version` nothing here can run (see
|
|
5407
|
+
* {@link WorkflowNotRegistered}). Within {@link unregisteredWorkflowGraceMs} of becoming due it is a
|
|
5408
|
+
* rolling deploy's skew: the lease is released at once so the pod that still has the version takes
|
|
5409
|
+
* the run now, not after the lease expires. Past it, the workflow is gone from the whole fleet (a
|
|
5410
|
+
* capable pod would have taken the run long ago): dead-letter it.
|
|
5411
|
+
*
|
|
5412
|
+
* The age is read off `updatedAt` / `wakeAt`, so every path that would touch either (a recovery
|
|
5413
|
+
* count, a re-pend, a hand-off's lease-long `wakeAt`) must call this BEFORE writing — otherwise an
|
|
5414
|
+
* orphan never ages.
|
|
5415
|
+
*
|
|
5416
|
+
* Returns the `dead` result, `null` when the run left its status meanwhile (a lease-free
|
|
5417
|
+
* `cancel()`: settled, not ours to touch), or `undefined` when it was left for later.
|
|
5418
|
+
*/
|
|
5419
|
+
private settleUnregistered;
|
|
5420
|
+
/** Log a run skipped for an unregistered workflow — still there, still not progressing. */
|
|
5421
|
+
private logUnregisteredSkip;
|
|
5375
5422
|
/**
|
|
5376
5423
|
* Resume every suspended run whose durable timer is due. Call periodically (a poller) and on
|
|
5377
5424
|
* boot. A run still not due re-suspends cheaply without running new work.
|
|
@@ -5473,7 +5520,8 @@ declare class WorkflowEngine {
|
|
|
5473
5520
|
* Resume each run only if this instance can acquire its recovery lease — so when several
|
|
5474
5521
|
* replicas recover or poll at once, each run is picked up by exactly one of them.
|
|
5475
5522
|
*
|
|
5476
|
-
* A run this instance cannot resume is SKIPPED, not allowed to abort the batch
|
|
5523
|
+
* A run this instance cannot resume is SKIPPED, not allowed to abort the batch (a run whose workflow
|
|
5524
|
+
* stays registered nowhere past `unregisteredWorkflowGraceMs` is dead-lettered instead). The canonical
|
|
5477
5525
|
* case is skew protection: mid-rolling-deploy a pod leases a run whose workflow it does not have
|
|
5478
5526
|
* and `resume` throws by design — but the rest of the batch is runs it can drive perfectly well,
|
|
5479
5527
|
* and every caller here is a recovery sweep. Letting the first such run end the loop means one
|
|
@@ -7844,6 +7892,22 @@ declare function withSingletonTracked(tags: string[] | undefined): string[];
|
|
|
7844
7892
|
* window is the head of the FIFO, admitted next anyway); with a larger limit it can only delay one.
|
|
7845
7893
|
*/
|
|
7846
7894
|
declare function legacySingletonHolders(active: WorkflowRun[], runId: string, limit: number): WorkflowRun[];
|
|
7895
|
+
/**
|
|
7896
|
+
* The size of one locking statement of {@link singletonClaimantIds}. Keep a store's chunks in the
|
|
7897
|
+
* order the database listed the ids: every claim then takes shared rows in one global order.
|
|
7898
|
+
*/
|
|
7899
|
+
declare const SINGLETON_LOCK_CHUNK = 500;
|
|
7900
|
+
/**
|
|
7901
|
+
* The runs a claim must lock: the active runs sharing its exact tag, in the order given. Admission
|
|
7902
|
+
* reads no other run, so claims on different keys need not wait for each other. Read them BEFORE the
|
|
7903
|
+
* admission transaction opens: on MySQL's REPEATABLE READ an earlier plain read would freeze the
|
|
7904
|
+
* snapshot the admission decision reads. A run that a later claim adds is still safe: that claim
|
|
7905
|
+
* started after this one's run existed, so its own lock set holds this run and the two serialize.
|
|
7906
|
+
*/
|
|
7907
|
+
declare function singletonClaimantIds(rows: readonly {
|
|
7908
|
+
id: string;
|
|
7909
|
+
tags?: unknown;
|
|
7910
|
+
}[], tag: string): string[];
|
|
7847
7911
|
/** Call only inside a store's atomic admission transaction/critical section. */
|
|
7848
7912
|
declare function singletonAdmissionTags(runs: WorkflowRun[], runId: string, tag: string, workflow: string, limit: number): string[] | null;
|
|
7849
7913
|
/** Terminal runs release admission, including when later resumed directly rather than requeued. */
|
|
@@ -7856,4 +7920,4 @@ declare function singletonAdmissionDenialPatch(runs: WorkflowRun[], runId: strin
|
|
|
7856
7920
|
updatedAt: Date;
|
|
7857
7921
|
} | undefined;
|
|
7858
7922
|
|
|
7859
|
-
export { type AccumulatorHost, type Admission, type AdmissionBackend, type AdmissionItem, type AllOptions, type AllSettledOptions, type AllStepsOptions, type AllStepsSettledOptions, type AnnouncedWorkflow, type AnnouncementEvidence, type AttributeFilter, type AttributeOp, type AttributePredicateOperand, type AttributeValue, type BackoffStrategy, type BlockedDispatch, type BlockedResolution, type BufferedSignalRow, CHILD_EDGE_PREFIXES, CONTROL_FLOW_SIGNAL, CORE_ORIGIN, CURRENT_PROTOCOL_VERSION, type CapabilityRequirement, type CheckpointAggregatingStore, type CheckpointNameKind, type CheckpointQuery, type CheckpointStat, type ChildCallOptions, type ChildWait, CodecStateStore, type CodecStateStoreOptions, type ConcurrencyConfig, ConcurrencyLimitError, type ConcurrencyQuota, ContinueAsNew, type ControlMessage, type ControlPlane, DEFAULT_CONCURRENCY_STATUSES, DEFAULT_PARTITION, DEFAULT_STALLED_AFTER_MS, DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL, DURABLE_STEP_CONFIG, DURABLE_STEP_NAME, type Disagreement, type DispatchDiagnostics, type DispatchPlan, type DurableExecution, type DurableExecutionWrapper, type DurableTopology, type DurableWebhook, DurableWorkflow, type DynamicWorkflowCtx, ENGINE_MINTED_TAG_PREFIXES, ENTITY_WORKFLOW, EVENT_BUFFER_SCAN_LIMIT, EVENT_TOKEN_PREFIX, type EngineEvent, type EngineEventType, type EngineListener, Entities, type EntityConfig, type EntityHandler, type EntityHost, type EntityWorkflowHost, EventAccumulators, type EventBatchConfig, FAN_SUMMARY_FAILURES, type FanJoin, type FanPage, type FanPageQuery, type FanSummary, type FanWait, FatalError, type FindStalledRunsOptions, GatherError, type GatherItemFailure, type GroupHealth, HANDOFF_SEQ_BASE, type Heartbeat, type HeartbeatSighting, type HeartbeatStatus, type HistoryEvent, InMemoryAdmissionBackend, InMemoryRunQueue, InMemoryStateStore, InMemoryTransport, type InferSearchAttributes, LEGACY_V1_CAPABILITIES, LEGACY_V1_PROTOCOL, type ListStalledRunsOptions, type MetricsCollector, type MetricsSnapshot, type NamedTransport, type NegotiateOptions, type NegotiationOutcome, type NegotiationReason, type NegotiationResult, NestedWorkflowCallError, NonDeterminismError, type OnErrorInput, type OnErrorRoute, type OwnedLeaseReclaim, type PartitionSighting, type PayloadCodec, type QueueConfig, QueueController, REMOTE_EVENT, RUN_HISTORY_FIXTURE_VERSION, RUN_VALUE_FACET_LIMIT, RUN_VALUE_FACET_SCAN, type RawWorkerDescriptor, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, RemoteWorkflowTimeout, type RetentionPolicy, type RoutableDispatch, type RoutableResolution, type RoutingResolution, type RunAttributeRow, type RunConsumerOptions, type RunDetail, type RunDetailOptions, type RunDispatch, type RunDispatcher, type RunFacetQuery, type RunFacetRow, RunGateway, type RunListItem, type RunQuery, type RunQueueOptions, type RunReply, type RunReplyResult, type RunRequest, type RunRequestKind, type RunResult, type RunSchedulesOptions, type RunScope, type RunStatus, type RunValueAxis, type RunValueFacetOptions, type RunValueFacetOrder, type RunValueFacetRow, type RunWaiting, SINGLETON_ACTIVE_STATUSES, SINGLETON_ADMITTED_TAG, SINGLETON_RESERVED_TAGS, SINGLETON_TRACKED_TAG, STATE_STORE, STATE_STORE_CANONICAL, SUMMARY_CHILD_LIMIT, type ScalarAttributeFilter, ScheduleAlreadyExistsError, ScheduleClient, type ScheduleClientOptions, type ScheduleDescription, type ScheduleHost, type ScheduleListQuery, ScheduleNotFoundError, type ScheduleOptions, type ScheduleQuery, type ScheduleRecord, type ScheduledWorkflow, type SchemaIssue, type SchemaValidationCode, SchemaValidationError, type SearchAttributes, type SearchAttributesSchema, type Settled, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StalePendingStep, type StalledRunInfo, StandardSchemaV1, type StartOptions, type StartRunMessage, type StateStore, type StepCheckpoint, type StepConfig, type StepDef, type StepDispatchOpts, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepRef, type StepResult, type StepScope, type StepSettlement, type StepUndo, type StoreTransaction, type SubProcessHandle, TERMINAL_RUN_STATUSES, TRANSPORT, TRANSPORT_CANONICAL, type TenantEvent, type TenantTokenSource, type TenantVerifier, type Transport, type UndoOf, type UpdateResult, type UpdateValidator, VERSION_UNDECLARED_TAG, type VerifiedTenant, WORKFLOW_NAME_KEY, type WireDates, type WorkerAdjust, type WorkerConcurrencyStatus, type WorkerDescriptor, type WorkerHeartbeat, type WorkerLifecycle, type WorkerStatus, type WorkflowAnnouncement, WorkflowBlocked, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, type WorkflowDirectory, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowHandler, type WorkflowInputOf, type WorkflowOutputOf, type WorkflowRef, type WorkflowRegistration, type WorkflowRun, type WorkflowStartClient, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, aggregateAnnouncements, aggregatesCheckpoints, announcementsOf, applyAttributeQuery, assertConcurrency, assertRoutes, attributeColumnFor, attributeOperand, attributePredicateOperands, axisIsRunColumn, bindWorkflowClass, breakpointToken, buildWorkflowDirectory, canRoute, capableWorkers, checkpointNameKind, checkpointStatsOf, childIdsOf, classifyWaiterToken, clearDurableExecutionWrappers, clearTerminalSingletonAdmission, codeAndDetails, codeOf, collectMetrics, concurrencyTag, controlPlaneDescriptor, countRuns, coveredTokens, createStepLogger, currentStep, currentStepScope, currentWorkflowCtx, debug, describeWorker, descriptorHash, detailsOf, error, etagMatches, eventMatchOf, eventMatches, eventNameOf, eventPrefix, eventToken, facetOrigin, fanPageBounds, fanPageEtag, findStalledRuns, foldedCount, getRunsByIds, handoffHandlerId, handoffName, hasDurableExecutionWrappers, heartbeatStatus, hmacTenantVerifier, indexWaitersByRun, info, isEngineMintedTag, isEventToken, isFailedMember, isLegacyDescriptor, isNonEmptyRunScope, isRemoteEvent, isWorkflowControlFlowSignal, legacySingletonHolders, listSignalWaitersOfRuns, liveHandoff, log, markRemoteEvent, matchesAttributes, mergeRunFacetRows, mergeRunValueFacetRows, missingCapabilities, negotiate, nextCronFireMs, normalizeAttributeRows, normalizeDescriptor, observedAnnouncements, onErrorRunId, pageFan, pageFanFromStore, parentRunIdOf, parseDuration, parseWebhookToken, partitionOfToken, planDispatch, poolNamespace, prevCronFireMs, queryCheckpointsOf, readRunsByIds, readSearchAttributes, requiredCapabilities, resolveConcurrency, resolveRouting, resolveRunWaiting, resolveTenantToken, resolveWireTenant, retiredHandoffName, routeFor, runDetailEtag, runDurableExecution, runInStepLogger, runInStepScope, runInWorkflowCtx, runOutsideWorkflowCtx, runSchedules, runStepHandler, runValueFacetsFromRuns, sanitizeQueueToken, scheduleRunIdAt, scheduledRunId, signTenantToken, singletonAdmissionDenialPatch, singletonAdmissionTags, sqlComparator, stepConfigOf, stepId, stepNameOf, sub, subEvent, subProcess, summarizeFan, summarizeRunFromStore, summarizeTimeline, tenantGroup, useDurableExecution, warn, withSingletonTracked, withoutSingletonMarkers, workflowName };
|
|
7923
|
+
export { type AccumulatorHost, type Admission, type AdmissionBackend, type AdmissionItem, type AllOptions, type AllSettledOptions, type AllStepsOptions, type AllStepsSettledOptions, type AnnouncedWorkflow, type AnnouncementEvidence, type AttributeFilter, type AttributeOp, type AttributePredicateOperand, type AttributeValue, type BackoffStrategy, type BlockedDispatch, type BlockedResolution, type BufferedSignalRow, CHILD_EDGE_PREFIXES, CONTROL_FLOW_SIGNAL, CORE_ORIGIN, CURRENT_PROTOCOL_VERSION, type CapabilityRequirement, type CheckpointAggregatingStore, type CheckpointNameKind, type CheckpointQuery, type CheckpointStat, type ChildCallOptions, type ChildWait, CodecStateStore, type CodecStateStoreOptions, type ConcurrencyConfig, ConcurrencyLimitError, type ConcurrencyQuota, ContinueAsNew, type ControlMessage, type ControlPlane, DEFAULT_CONCURRENCY_STATUSES, DEFAULT_PARTITION, DEFAULT_STALLED_AFTER_MS, DURABLE_OPTIONS, DURABLE_OPTIONS_CANONICAL, DURABLE_STEP_CONFIG, DURABLE_STEP_NAME, type Disagreement, type DispatchDiagnostics, type DispatchPlan, type DurableExecution, type DurableExecutionWrapper, type DurableTopology, type DurableWebhook, DurableWorkflow, type DynamicWorkflowCtx, ENGINE_MINTED_TAG_PREFIXES, ENTITY_WORKFLOW, EVENT_BUFFER_SCAN_LIMIT, EVENT_TOKEN_PREFIX, type EngineEvent, type EngineEventType, type EngineListener, Entities, type EntityConfig, type EntityHandler, type EntityHost, type EntityWorkflowHost, EventAccumulators, type EventBatchConfig, FAN_SUMMARY_FAILURES, type FanJoin, type FanPage, type FanPageQuery, type FanSummary, type FanWait, FatalError, type FindStalledRunsOptions, GatherError, type GatherItemFailure, type GroupHealth, HANDOFF_SEQ_BASE, type Heartbeat, type HeartbeatSighting, type HeartbeatStatus, type HistoryEvent, InMemoryAdmissionBackend, InMemoryRunQueue, InMemoryStateStore, InMemoryTransport, type InferSearchAttributes, LEGACY_V1_CAPABILITIES, LEGACY_V1_PROTOCOL, type ListStalledRunsOptions, type MetricsCollector, type MetricsSnapshot, type NamedTransport, type NegotiateOptions, type NegotiationOutcome, type NegotiationReason, type NegotiationResult, NestedWorkflowCallError, NonDeterminismError, type OnErrorInput, type OnErrorRoute, type OwnedLeaseReclaim, type PartitionSighting, type PayloadCodec, type QueueConfig, QueueController, REMOTE_EVENT, RUN_HISTORY_FIXTURE_VERSION, RUN_VALUE_FACET_LIMIT, RUN_VALUE_FACET_SCAN, type RawWorkerDescriptor, RemoteStepError, RemoteStepTimeout, type RemoteTask, RemoteWorkflowExecutor, RemoteWorkflowTimeout, type RetentionPolicy, type RoutableDispatch, type RoutableResolution, type RoutingResolution, type RunAttributeRow, type RunConsumerOptions, type RunDetail, type RunDetailOptions, type RunDispatch, type RunDispatcher, type RunFacetQuery, type RunFacetRow, RunGateway, type RunListItem, type RunQuery, type RunQueueOptions, type RunReply, type RunReplyResult, type RunRequest, type RunRequestKind, type RunResult, type RunSchedulesOptions, type RunScope, type RunStatus, type RunValueAxis, type RunValueFacetOptions, type RunValueFacetOrder, type RunValueFacetRow, type RunWaiting, SINGLETON_ACTIVE_STATUSES, SINGLETON_ADMITTED_TAG, SINGLETON_LOCK_CHUNK, SINGLETON_RESERVED_TAGS, SINGLETON_TRACKED_TAG, STATE_STORE, STATE_STORE_CANONICAL, SUMMARY_CHILD_LIMIT, type ScalarAttributeFilter, ScheduleAlreadyExistsError, ScheduleClient, type ScheduleClientOptions, type ScheduleDescription, type ScheduleHost, type ScheduleListQuery, ScheduleNotFoundError, type ScheduleOptions, type ScheduleQuery, type ScheduleRecord, type ScheduledWorkflow, type SchemaIssue, type SchemaValidationCode, SchemaValidationError, type SearchAttributes, type SearchAttributesSchema, type Settled, SignalTimeoutError, type SignalWaiter, type SingletonConfig, SingletonQueueFullError, type StalePendingStep, type StalledRunInfo, StandardSchemaV1, type StartOptions, type StartRunMessage, type StateStore, type StepCheckpoint, type StepConfig, type StepDef, type StepDispatchOpts, type StepError, type StepEvent, type StepHandler, type StepInterceptor, type StepInvocation, type StepKind, type StepLogger, type StepOptions, type StepRef, type StepResult, type StepScope, type StepSettlement, type StepUndo, type StoreTransaction, type SubProcessHandle, TERMINAL_RUN_STATUSES, TRANSPORT, TRANSPORT_CANONICAL, type TenantEvent, type TenantTokenSource, type TenantVerifier, type Transport, type UndoOf, type UpdateResult, type UpdateValidator, VERSION_UNDECLARED_TAG, type VerifiedTenant, WORKFLOW_NAME_KEY, type WireDates, type WorkerAdjust, type WorkerConcurrencyStatus, type WorkerDescriptor, type WorkerHeartbeat, type WorkerLifecycle, type WorkerStatus, type WorkflowAnnouncement, WorkflowBlocked, type WorkflowClass, type WorkflowCommand, type WorkflowCtx, type WorkflowDecision, type WorkflowDirectory, WorkflowEngine, type WorkflowEngineDeps, type WorkflowExecutor, type WorkflowHandler, type WorkflowInputOf, WorkflowNotRegistered, type WorkflowOutputOf, type WorkflowRef, type WorkflowRegistration, type WorkflowRun, type WorkflowStartClient, type WorkflowStepEvent, WorkflowSuspended, type WorkflowTask, aggregateAnnouncements, aggregatesCheckpoints, announcementsOf, applyAttributeQuery, assertConcurrency, assertRoutes, attributeColumnFor, attributeOperand, attributePredicateOperands, axisIsRunColumn, bindWorkflowClass, breakpointToken, buildWorkflowDirectory, canRoute, capableWorkers, checkpointNameKind, checkpointStatsOf, childIdsOf, classifyWaiterToken, clearDurableExecutionWrappers, clearTerminalSingletonAdmission, codeAndDetails, codeOf, collectMetrics, concurrencyTag, controlPlaneDescriptor, countRuns, coveredTokens, createStepLogger, currentStep, currentStepScope, currentWorkflowCtx, debug, describeWorker, descriptorHash, detailsOf, error, etagMatches, eventMatchOf, eventMatches, eventNameOf, eventPrefix, eventToken, facetOrigin, fanPageBounds, fanPageEtag, findStalledRuns, foldedCount, getRunsByIds, handoffHandlerId, handoffName, hasDurableExecutionWrappers, heartbeatStatus, hmacTenantVerifier, indexWaitersByRun, info, isEngineMintedTag, isEventToken, isFailedMember, isLegacyDescriptor, isNonEmptyRunScope, isRemoteEvent, isWorkflowControlFlowSignal, legacySingletonHolders, listSignalWaitersOfRuns, liveHandoff, log, markRemoteEvent, matchesAttributes, mergeRunFacetRows, mergeRunValueFacetRows, missingCapabilities, negotiate, nextCronFireMs, normalizeAttributeRows, normalizeDescriptor, observedAnnouncements, onErrorRunId, pageFan, pageFanFromStore, parentRunIdOf, parseDuration, parseWebhookToken, partitionOfToken, planDispatch, poolNamespace, prevCronFireMs, queryCheckpointsOf, readRunsByIds, readSearchAttributes, requiredCapabilities, resolveConcurrency, resolveRouting, resolveRunWaiting, resolveTenantToken, resolveWireTenant, retiredHandoffName, routeFor, runDetailEtag, runDurableExecution, runInStepLogger, runInStepScope, runInWorkflowCtx, runOutsideWorkflowCtx, runSchedules, runStepHandler, runValueFacetsFromRuns, sanitizeQueueToken, scheduleRunIdAt, scheduledRunId, signTenantToken, singletonAdmissionDenialPatch, singletonAdmissionTags, singletonClaimantIds, sqlComparator, stepConfigOf, stepId, stepNameOf, sub, subEvent, subProcess, summarizeFan, summarizeRunFromStore, summarizeTimeline, tenantGroup, useDurableExecution, warn, withSingletonTracked, withoutSingletonMarkers, workflowName };
|