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

Add a command to list retrievals #6337

Merged
merged 6 commits into from
Jun 4, 2021
Merged

Add a command to list retrievals #6337

merged 6 commits into from
Jun 4, 2021

Conversation

hannahhoward
Copy link
Contributor

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 on lotus client list-deals and lotus 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.

@jennijuju jennijuju added area/api impact/api-breakage Impact: API Breakage impact/docs Impact: Documentation labels May 27, 2021
@jennijuju jennijuju added this to the v1 API milestone May 27, 2021
@jennijuju jennijuju requested review from dirkmc, magik6k and arajasek and removed request for dirkmc May 27, 2021 03:05
@jennijuju
Copy link
Member

@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
@hannahhoward hannahhoward force-pushed the feat/list-retrievals branch from 1e7181d to 9e73e43 Compare May 27, 2021 18:48
@dirkmc
Copy link
Contributor

dirkmc commented May 31, 2021

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

@magik6k magik6k removed the impact/api-breakage Impact: API Breakage label May 31, 2021
@hannahhoward
Copy link
Contributor Author

updated to have show-failed as default true

@jennijuju jennijuju added the P2 P2: Should be resolved label Jun 4, 2021
@jennijuju jennijuju modified the milestones: v1 API, v1.11.x Jun 4, 2021
@magik6k magik6k merged commit 42ec592 into master Jun 4, 2021
@magik6k magik6k deleted the feat/list-retrievals branch June 4, 2021 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api impact/docs Impact: Documentation P2 P2: Should be resolved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants