temporalio / temporalio/sdk-typescript

[Feature Request] Provide WorkflowInfo.initiator?

Open
#668 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
TypeScript
Stars
917
Forks
224
Avg merge
3d 16h
Merged PRs (30d)
43

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the TypeScript definitions and entry points for WorkflowInfo.more and startWorkflow.continueInitiator. Confirm whether exposing Initiator is supported by the current API shape, then identify concrete user requests or use cases before defining what completion means; the issue currently has no agreed acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.