Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix FiberError on LocalWorkflowContext#wait_until #336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agiveygives
Copy link

When running tests in local mode on a workflow that contains a wait_until call, I was encountering the follow error:

E, [2025-03-04T14:13:47.126103 #82617] ERROR -- temporal_client: Workflow execution failed {"namespace":null,"workflow_id":"2c8e5d81-3ae6-47f9-8d33-ed8d6fd03253","workflow_name":"Workflow::MyWorkflow","workflow_run_id":"b0fe956d-8352-4ab6-b290-331e48fc2d93","parent_workflow_id":null,"parent_workflow_run_id":null,"attempt":1,"task_queue":"unit-test-task-queue","run_started_at":1741119227.09876,"memo":{},"error":"#<FiberError: attempt to yield on a not resumed fiber>"}
D, [2025-03-04T14:13:47.126150 #82617] DEBUG -- temporal_client: /Users/andrewgivens/.asdf/installs/ruby/3.4.2/lib/ruby/gems/3.4.0/bundler/gems/temporal-ruby-b5efd2cef802/lib/temporal/testing/local_workflow_context.rb:204:in 'Fiber.yield'
/Users/andrewgivens/.asdf/installs/ruby/3.4.2/lib/ruby/gems/3.4.0/bundler/gems/temporal-ruby-b5efd2cef802/lib/temporal/testing/local_workflow_context.rb:204:in 'Temporal::Testing::LocalWorkflowContext#wait_until'

I was able to fix the error and get my tests working with the patch in the PR that wraps the yield in a resumed Fiber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant