Skip to content

Conversation

@ctsstc
Copy link
Contributor

@ctsstc ctsstc commented Dec 2, 2025

The change modifies the #enqueue method to handle both resolution and rejection with the same task function, enabling error recovery by retrying failed tasks instead of propagating errors. A comprehensive test was added to validate the issue and then that the fix passes the test suite. This verifies that the client continues working properly after encountering errors.

This fixes #23

ctsstc and others added 3 commits December 1, 2025 19:24
The change modifies the #enqueue method to handle both resolution and rejection with the same task function, enabling error recovery by retrying failed tasks instead of propagating errors. A comprehensive test was added to validate the issue and then that the fix passes the test suite. This verifies that the client continues working properly after encountering errors.
Copy link
Owner

@iuioiua iuioiua left a comment

Choose a reason for hiding this comment

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

Nice fix! I used assertRejects to assert that redisClient.sendCommand rejects in the desired manner.

@iuioiua iuioiua changed the title fix(redis): improve error handling in task queue fix: improve error handling in task queue Dec 2, 2025
@iuioiua iuioiua merged commit d9f829c into iuioiua:main Dec 2, 2025
1 check passed
@ctsstc ctsstc deleted the fix-error-queue-blocking branch December 2, 2025 11:18
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.

Stuck on previous error?

2 participants