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

does this support parallel execution with the same session? #203

Closed
simonLeary42 opened this issue Aug 19, 2024 · 1 comment
Closed

does this support parallel execution with the same session? #203

simonLeary42 opened this issue Aug 19, 2024 · 1 comment

Comments

@simonLeary42
Copy link

The official bitwarden CLI has a race condition on its cache file (session specific), and if you try to run it in parallel, the file will be corrupted. Does rbw have that problem?

I see that d4453cb added support for parallel execution on different sessions. But what about the same session?

@doy
Copy link
Owner

doy commented Dec 27, 2024

yes, parallel execution should work fine - the rbw binary will spawn a persistent agent process the first time it is run, which will be used by all further executions. that agent process mediates all access to the cache, etc., and uses mutexes internally to avoid requests from multiple clients from interfering with each other.

@doy doy closed this as completed Dec 27, 2024
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

No branches or pull requests

2 participants