-
Notifications
You must be signed in to change notification settings - Fork 122
RSDK-10929: Log slow package download progress #5061
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an edge case here where if the download stalls, we stop emitting progress. But what we have here as an easy fix is perfectly fine. Compared to spinning off a background goroutine to manage the logging bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still lgtm
Good point about download stalling. If >0% has already been downloaded, it can probably be inferred from prior log messages (e.g. no new updates after 30% downloaded). But a background goroutine would be the way to go if we want to fire off alarms in this case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Prints download path and download progress for package downloads. Hardcoded for now to log every 5 seconds.
Quick download shows completion message only (<5s)
Slow download logs progress every 5s: