Skip to content

Continuous polling in UpdateHandle::fetchResult() until deadline#591

Merged
roxblnfk merged 2 commits into
masterfrom
update-handler
Apr 15, 2025
Merged

Continuous polling in UpdateHandle::fetchResult() until deadline#591
roxblnfk merged 2 commits into
masterfrom
update-handler

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Apr 8, 2025

Copy link
Copy Markdown
Collaborator

What was changed

Replaced the approach in PR #526 by modifying UpdateHandle::fetchResult() to repeatedly poll the Temporal service until either the configured deadline is reached or a response is received. This eliminates the need for a special WorkflowUpdateResultException when a Workflow Update Request is stuck in ADMITTED status.

Why?

This implementation aligns with other Temporal SDKs by continuing to poll rather than throwing an exception when updates are stuck. This provides a more consistent behavior across Temporal implementations and better handles scenarios where workflows are delayed due to unavailable workers or failed workflow tasks.

Checklist

  1. Tested manually

@vercel

vercel Bot commented Apr 8, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
php ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2025 2:27pm

repeat the polling of update request until configured deadline
@roxblnfk roxblnfk merged commit 168cc99 into master Apr 15, 2025
@roxblnfk roxblnfk deleted the update-handler branch April 15, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants