Repository navigation
Release v2.5.0
Workflow nodes can now wait for an answer that arrives later, one slow external system can no longer take every worker slot, and a run stopped on an ambiguous outcome can be resumed with the outcome a person chose. Built for extension invocations in Stage; see Cratis/Stage#1067.
Added
WorkflowNodeOutcome.Suspended(key, expiresAfter): a performer that accepted the work answers later. The node waits like awaitwithout holding a worker, and ends when it is completed by key or expires through theexpiredoutlet (#200)IWorkflowCompletions.Completecompletes the suspended node byWorkflowCompletionKey, andWaitKind.Completionis a new wait kindWorkflowsOptions.CapabilityLimitsbounds the performer calls of a capability in flight on a silo, by capability id or a prefix such asability:Slack.*, throughIWorkflowCapabilityGatesIWorkflowRun.Reconcileresumes a run stopped on an ambiguous outcome with a chosen success, failure or skip, recorded asWorkflowNodeReconciledwith the actor.IWorkflowRunis now at[Version(1)]NodeExecutionSnapshot.ReasonandNodeExecutionSnapshot.IdempotencyKeytell a person what was ambiguous and which invocation to look up- Documentation: suspension by key, capability gates and reconciliation, linked with the Stage invocation work