temporalio / temporalio/temporal
Workflow loses cron when also using NewContinueAsNewError
Open
@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
- Create a workflow that returns NewContinueAsNewError
- Invoke workflow with CronSchedule
- Notice how CronSchedule is removed and will not ever run again
Specifications
- Version: 0.30.0
- Platform:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.