-
Notifications
You must be signed in to change notification settings - Fork 12
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
Flag to exit immediately on cache misses #24
Comments
Thanks for the feature request. Can you elaborate on how you'd use the "null" signal, would you be handle it in some way, or just pass it off to the caller to deal with? How would you feel about a |
Thanks for the app and for your question. It helped me to clarify what I really need.
So I use nushell. I have a table with column of addresses. On each address I need to make a call to some cli, to get data from to fill a new column accordingly. The response of this cli execution takes about 2-10 seconds. As soon as nushell get a response from cli with null and some exit code, it can continue making another call of cli for the next address. I imagined, that after some time I just can repeat my requests on the list of addresses, and fastly fill the column with the values, that were executed already.
Ideally, I would avoid using the second call with --warm flag. But this way bkt must know about already running tasks, to avoid duplicating them. I'm not sure if it is feasible by the current design. Anyway, thanks for your question. Now I see that some queue management tool is absolutely necessary in my case to limit the number of simultaneosly running jobs. |
What I've done in cases like this (such as when using Another approach you could consider, depending on your application's design (I've not used nushell), would be to call out to I am thinking about adding locking of some sort (see #11) but it would still block waiting for results without a feature like |
Please, consider adding a flag to return null when there is no caching results, but to request execution of the command in background.
I'm trying to implement a nushell cli wrapper, that would ask for results of cli execution asynchroniously.
I have a list of parameters, that I want to request information about in parallel threads from the app that retrieves such information from some server in the internet. BKT would be helpful here, if it just returned null instantaneously, and in background asked for information from cli. And, on the next call it would return the requested information.
The text was updated successfully, but these errors were encountered: