-
-
Notifications
You must be signed in to change notification settings - Fork 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
Pinning progress #7938
Comments
Popping out of the woodwork to say that there has never been a way to get any kind of progress via the HTTP API, since HTTP can only return a result once (which is done once the operation in question has completed). It would be super beneficial to have a way to get the progress of long-running operations via the HTTP API but HTTP does not provide any way to actually communicate the progress information (without doing weird things or using WebSockets). |
This isn't quite right - progress works for other IPFS HTTP API methods by holding the response stream open and writing progress events into it as newline delimited JSON as they become available. This is the mechanism by which you see progress during the To answer my own question from above - 'Is this functioning as intended?' no, it's not - |
Wow, that's interesting! It looks like I have a bug of my own to track down, thanks for helping me figure out that it isn't the IPFS daemon :P |
Ok, after testing this, it appears to be working as intended. The Unfortunately, we can't print out filenames because pinning doesn't know about unixfs. |
Aha, I think that's what I was missing, the thing that I pinned took less than half a second so I only saw one progress notification and thought there would only be one at the end of the operation. |
Just pinging here in agreement :-) Pinning ~20GiB on my node, and this is the progress I get:
It would be nice to have a little more information. Even some cleanup of the language would be helpful to be consistent. (is this node like a peer? Is it node like a chunk?) Examples:
Then...
|
@kallisti5 could you open a new issue for this? This one was a bug report so I'm going to close it. |
Version information:
Description:
I'm looking at exposing the
progress
arg toipfs.pin.addAll
foripfs-http-client
and am trying to nail down the behaviour of go-IPFS.If I add a directory recursively I see progress:
If I then pin that directory with the progress CLI arg, I see no progress:
If I do the same operation via the HTTP API, I get a progress indicator, but only one and it's only emitted once the whole DAG has been pinned:
I'm guessing the value
32
is the total number of blocks in the DAG that was pinned?Is this functioning as intended? It doesn't look like this can be used to indicate progress, in that it only arrives once the operation is complete.
The text was updated successfully, but these errors were encountered: