Interface: StartNexusOperationOptions
Options for starting a Nexus Operation.
Properties
cancellationType?
readonlyoptionalcancellationType?:NexusOperationCancellationType
Determines:
- whether cancellation requests should be propagated from the Workflow to the Nexus Operation
- whether and when should the Operation's cancellation be reported back to the Workflow
(i.e. at which moment should the operation's result promise fail with a
NexusOperationFailure, withcauseset to aCancelledFailure).
Note that this setting only applies to cancellation originating from an external request for the
Workflow itself, or from internal cancellation of the CancellationScope in which the
Operation call was made.
Default
WAIT_CANCELLATION_COMPLETED
eventGroups?
readonlyoptionaleventGroups?:EventGroup[]
Experimental
Event Groups to attach to the schedule-Nexus-operation command. They will be reflected on the corresponding workflow history events, and may be used by tooling (UI/CLI) to group related events together. See EventGroup and createEventGroup.
Event Groups is an experimental API and may change without notice.
scheduleToCloseTimeout?
readonlyoptionalscheduleToCloseTimeout?:Duration
The end to end timeout for the Nexus Operation.
Optional: defaults to the maximum allowed by the Temporal server.
scheduleToStartTimeout?
readonlyoptionalscheduleToStartTimeout?:Duration
How long the operation may wait before it begins executing. If the operation has not started within this window, a timeout error with type SCHEDULE_TO_START is raised.
Optional: defaults to no timeout.
startToCloseTimeout?
readonlyoptionalstartToCloseTimeout?:Duration
How long an async operation may take to complete after it has started. If the operation does not complete within this window, a timeout error with type START_TO_CLOSE is raised.
Optional: defaults to no timeout.
summary?
readonlyoptionalsummary?:string
A fixed, single-line summary for this Nexus Operation that may appear in the UI/CLI. This can be in single-line Temporal markdown format.