Skip to content

add flag to disable raising exceptions with pipelined #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

philippeboyd
Copy link
Contributor

@philippeboyd philippeboyd commented Apr 9, 2024

Modifying the pipelined method in lib/redis_client.rb to include an optional exception parameter, which determines whether an exception should be raised when an error occurs during pipelining.

This gives better flexibility for error management when we want to retry only failed commands.

@philippeboyd philippeboyd changed the title feat(pipeline): add flag to disable raising exceptions add flag to disable raising exceptions with pipelined Apr 9, 2024
@philippeboyd philippeboyd force-pushed the feature/add-pipeline-raise_exception-flag branch from 0aa2d59 to 1aef7eb Compare April 9, 2024 20:55
@philippeboyd philippeboyd marked this pull request as ready for review April 9, 2024 20:56
@philippeboyd philippeboyd force-pushed the feature/add-pipeline-raise_exception-flag branch 2 times, most recently from dd702ca to af56b57 Compare April 10, 2024 00:14
Copy link
Collaborator

@casperisfine casperisfine left a comment

Choose a reason for hiding this comment

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

A bunch of nitpicks on the API, but overall the feature seem nice to me 👍

@timeouts = nil
@raise_exception = raise_exception
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@casperisfine should these also be renamed to exception. I feel like exception would be more suitable for an exception object itself and not a boolean flag such as raise_exception. What do you think?

@philippeboyd philippeboyd force-pushed the feature/add-pipeline-raise_exception-flag branch 3 times, most recently from 8e0d595 to 729faea Compare April 10, 2024 13:45
@philippeboyd philippeboyd force-pushed the feature/add-pipeline-raise_exception-flag branch from 729faea to 662d269 Compare April 10, 2024 14:40
@casperisfine casperisfine merged commit 1faa48a into redis-rb:master Apr 10, 2024
@philippeboyd philippeboyd deleted the feature/add-pipeline-raise_exception-flag branch August 23, 2024 18:29
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.

2 participants