temporalio / temporalio/temporal

Retry Policy should be copied to the continued as new workflow.

Open
#5,249 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

potential-bug
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Expected Behavior

When a retry policy is not set in the ContinueAsNewWorkflowExecutionCommandAttributes continued workflow should have the same policy as the previous workflow run.

Actual Behavior

The continued workflow doesn't have the retry policy set.

Steps to Reproduce the Problem

  1. Set retry policy on a workflow.
  2. Call continue as new
  3. Verify that the next workflow doesn't have retry policy set.

The code that should perform the merge:

https://github.com/temporalio/temporal/blob/a6fb92999a23b35f14c06157934580351d3b2162/service/history/workflow/mutable_state_impl.go#L1630

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 at service/history/workflow/mutable_state_impl.go around line 1630 and trace the merge for ContinueAsNewWorkflowExecutionCommandAttributes. Follow the listed reproduction steps, then verify that omitting a retry policy preserves the previous workflow run's policy in the continued workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.