-
Notifications
You must be signed in to change notification settings - Fork 135
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
Bug 1780806 - Allow the uploader to signal it is done handling uploads. #2136
Conversation
c7f2283
to
9a13b82
Compare
Ok, I reworked this a bit now. Additionally I reworked the test. Instead of arbitrary sleep times it now uses a barrier to sync up the 2 threads. That should be much more reliable. |
3248c16
to
db59268
Compare
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.
Needs CHANGELOG
glean-core/android/src/main/java/mozilla/telemetry/glean/scheduler/PingUploadWorker.kt
Show resolved
Hide resolved
db59268
to
1e77964
Compare
Codecov Report
@@ Coverage Diff @@
## main #2136 +/- ##
=======================================
Coverage 26.47% 26.47%
=======================================
Files 1 1
Lines 34 34
=======================================
Hits 9 9
Misses 25 25 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
1e77964
to
f2ff862
Compare
Putting this up so it's up.
I want to discuss this with chutten when he's back.
I'm not super happy with it because the
UploadResult::Done
needs to be handled on a different layer than all the otherUploadResult
variants.(It's also only implemented for the RLB right now)