Skip to content

Conversation

@roxblnfk
Copy link
Collaborator

@roxblnfk roxblnfk commented Apr 8, 2025

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
Copy link

vercel bot commented Apr 8, 2025

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
110 of 114 checks passed
@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.

3 participants