Skip to content

Conversation

@maxdml
Copy link
Collaborator

@maxdml maxdml commented Sep 9, 2025

  • Fix a bug where sleep steps ID were not always generated when recv/getEvent skipped sleeping (e.g., a value was already found, during recovery)
  • Fix a bug were recv would return an error if it recorded a timeout value
  • Handle context cancellation during recv (addresses Recv should handle context cancellation #86)

Comment on lines -2012 to -2017
if err != nil {
if err == pgx.ErrNoRows {
value = nil // Event still doesn't exist
} else {
return nil, fmt.Errorf("failed to query workflow event after wait: %w", err)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplify: the zero value of an any value is already nil

@maxdml maxdml marked this pull request as ready for review September 9, 2025 20:44
@maxdml maxdml marked this pull request as draft September 9, 2025 20:48
@maxdml maxdml marked this pull request as ready for review September 9, 2025 21:05
@maxdml maxdml merged commit 050cfef into main Sep 10, 2025
2 checks passed
@maxdml maxdml deleted the fix-comms-durable-sleeps branch September 10, 2025 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants