Embedders can't communicate the network isn't available
Categories
(Data Platform and Tools :: Glean: SDK, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: chutten, Assigned: janerik)
References
Details
Attachments
(1 file)
As an example, Firefox Desktop knows precisely when it is unable to use the network (when we're in/after shutdown phase AppShutdownNetTeardown
). At present, upload jobs submitted at this time will return as a recoverable (since bug 1776201) network failure. The SDK instruments this as an error and may continue to send work that will also fail.
This bug is for designing and implementing a way for embedders to communicate that upload jobs are expected to fail and whether or not the SDK should submit more of them at the moment (or at all).
The solution that seems most straightforward would be to augment UploadResult
to have, say, a NotReady
or Delay
return value (perhaps parameterized with a realtime delay to wait before submitting more jobs?), ensuring that this isn't instrumented as an error case (though we may still wish to instrument it for its own reasons).
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
Dropping priority as I want to discuss this with chutten in ~2 weeks.
Assignee | ||
Comment 3•2 years ago
|
||
badboy merged PR #2136: "Bug 1780806 - Allow the uploader to signal it is done handling uploads." in bc13073.
Description
•