temporalio / temporalio/temporal

Workflow loses cron when also using NewContinueAsNewError

Open
#746 1 comment 0 reactions 1 assignee View on GitHub

@dnr is already working on this.

Since Jul 4, 2021.

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

Description

Expected Behavior

Even when returning NewContinueAsNewError in a workflow that has a CronSchedule, the CronSchedule should still execute

Actual Behavior

After returning NewContinueAsNewError, the CronSchedule is erased from the workflow settings and thus the workflow will stop once you return something other than NewContinueAsNewError.

Steps to Reproduce the Problem

  1. Create a workflow that returns NewContinueAsNewError
  2. Invoke workflow with CronSchedule
  3. Notice how CronSchedule is removed and will not ever run again

Specifications

  • Version: 0.30.0
  • Platform:

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.