-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add a command to list retrievals #6337
Conversation
@hannahhoward is this an API that you want to be available for most users? If so, i thinkk it should be added to the v0 api package as v0 will still be the default for several months! |
Currently, there is no way to inspect retrievals on a client. This adds said command, allow with corresponding APIs
1e7181d
to
9e73e43
Compare
I'd suggest we show deals that errored out by default (with a flag to hide). It seems that people often get confused that their failed deal doesn't show up in list-deals, list-transfers etc. eg see #6346 |
updated to have show-failed as default true |
Goals
Especially in automated environments with lots of concurrent retrievals (see dealbot), the lack of a command monitor all retrievals becomes a pain point. My recollection is we didn't build this original cause we assumed "well retrievals will be fast so you wont want to monitor them" -- but this isn't neccesarily true -- large retrievals on slow connections can take a while, especially if you're running lots in parallel
Implementation
-- v1API (assuming I should add here cause it's a new, untested API) --
-- Add ClientListRetrievals
-- Add ClientGetRetrievalUpdates
-- cli
-- add
lotus client list-retrievals
-- based onlotus client list-deals
andlotus client list-transfers
Do we have a way we are testing commands right now (other than by hand)? If not I will run against some lotus nodes I am working with.