Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Mismatch in `workflow_id_reuse_policy` across testing and production environments

Open
#341 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby
Domain
backend, testing

Research direction

Start at lib/temporal/testing/temporal_override.rb around line 83 and compare its workflow_id_reuse_policy default with the production behavior described in the issue. Reproduce the mismatch in the Temporal testing environment and inspect relevant tests; done when the intended default is established and testing behavior is aligned or clearly documented.

Written by the indexing model from the issue text.

Description

When executing Temporal tests locally, workflows with the same workflow_id, and COMPLETED status are not rerun. They raise a WorkflowExecutionAlreadyStartedFailure.

But this is not the case in production, where COMPLETED workflows with the same workflow_id are rerun without passing {workflow_id_reuse_policy: :allow} explicitly.

I have currently patched https://github.com/coinbase/temporal-ruby/blob/b5efd2cef802be2fa97d5bab04839413726ac06e/lib/temporal/testing/temporal_override.rb#L83, to use :allow as the default value.

Is this intended behavior ? I feel the testing environment should be as close as possible to dev & production.

Dominant language
Ruby
Stars
287
Forks
113
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from coinbase/temporal-ruby

All issues in coinbase/temporal-ruby

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.