Skip to content

Add command timeout #3008

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

Merged
merged 1 commit into from
Jul 7, 2025
Merged

Conversation

nkaradzhov
Copy link
Collaborator

@nkaradzhov nkaradzhov commented Jul 2, 2025

Add command timeout in the command options. It can be set via the global options when creating a client or per command when using the generic sendCommand function

Timeout only works while the command is still pending to be sent. Once a command is sent over the wire, the timeout is deleted and is never going to trigger. This decision could be changed if we deem its not good enough


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)? - TODO

@nkaradzhov nkaradzhov mentioned this pull request Jul 7, 2025
3 tasks
@nkaradzhov nkaradzhov force-pushed the add-command-timeout branch from 1ee604b to 25ce9b0 Compare July 7, 2025 08:31
@nkaradzhov nkaradzhov merged commit 65a12d5 into redis:master Jul 7, 2025
14 checks passed
@nkaradzhov nkaradzhov deleted the add-command-timeout branch July 7, 2025 08:37
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