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

NoMethodError when await_workflow_result is called for long running workflows

Open
#326 1 comment 0 reactions 0 assignees View on GitHub

@iekundayo is already working on this.

Since Nov 1, 2024.

  • #325 by @iekundayo — open

Assessment

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

Research direction

Start at the await_workflow_result entry point and inspect how responses with wait_new_event are handled when events is empty. Trace next_page_token across repeated long-poll requests, and consider the work complete when polling continues until a new event arrives with an empty next_page_token without raising NoMethodError.

Written by the indexing model from the issue text.

Description

Seeing the below error when calling await_workflow_result for longer workflows.

await_workflow_result': undefined method 'type' for nil:NilClass (NoMethodError)

The current implementation assumes that the result will always be returned with non-empty events list if a request doesn't time out from GRPC::DeadlineExceeded. This is not the case when a request is created with the wait_new_event option set to true. Temporal sever treats this as a long poll request and populates the next_page_token to inform that client that it needs to keep polling. This process is repeated until an empty next_page_token is sent alongside the new event.

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.