sdk-typescript icon indicating copy to clipboard operation
sdk-typescript copied to clipboard

[Feature Request] Provide WorkflowInfo.initiator?

Open lorensr opened this issue 3 years ago • 0 comments

If this is helpful to users, we could expose startWorkflow.continueInitiator as WorkflowInfo.more.initiator: Initiator. Currently we're not, but I'm opening this issue to see if there are any user requests / use cases for it.

export enum Initiator {
  Unspecified = 0,
  ContinueAsNew = 1,
  Retry = 2,
  Cron = 3,
}

One possible use case is determining whether the current Execution was initiated due to retry vs continue as new.

lorensr avatar May 27 '22 15:05 lorensr