Closed Bug 1780806 Opened 3 years ago Closed 2 years ago

Embedders can't communicate the network isn't available

Categories

(Data Platform and Tools :: Glean: SDK, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

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).

Priority: -- → P2
Assignee: nobody → jrediger

Dropping priority as I want to discuss this with chutten in ~2 weeks.

Priority: P2 → P3
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: