Skip to content
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

hack: retry commands to avoid throttling #208

Closed

Conversation

jchan-legendpower
Copy link

@jchan-legendpower jchan-legendpower commented Dec 14, 2024

See #137 (comment)

Not sure if this is the preferred approach, a fixed timeout between commands seems wasteful since the desktop client performance apparently improves over time. Polling as implemented here will generate some extra log spam, but I guess it could also be turned off.

@zcutlip
Copy link
Owner

zcutlip commented Dec 19, 2024

As discussed elsewhere, I think what is happening in your case is repeated op invocations are DOSing the 1Password app and it temporarily becomes unavailable. I don't think this PR is the best approach to addressing this problem. However I've created issue #209 where we can address it properly.

In the short term I believe we'll raise a specific exception, allowing the caller to back off and try again if they believe the failure to be temporary. I've also created #210 to explore doing this automatically under some circumstances.

@zcutlip zcutlip closed this Dec 19, 2024
@jchan-legendpower
Copy link
Author

Fair enough, this workaround works for me since I prefer to poll to get a response as quick as possible, but I will admit its kinda inelegant.

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