Page MenuHomePhabricator

[lib] Enable automatic retries for some messages
ClosedPublic

Authored by tomek on Jul 15 2024, 4:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 25, 7:05 PM
Unknown Object (File)
Wed, Sep 25, 7:05 PM
Unknown Object (File)
Wed, Sep 25, 7:05 PM
Unknown Object (File)
Wed, Sep 25, 7:05 PM
Unknown Object (File)
Mon, Sep 23, 8:47 AM
Unknown Object (File)
Sep 16 2024, 3:16 AM
Unknown Object (File)
Sep 15 2024, 10:07 AM
Unknown Object (File)
Sep 15 2024, 10:05 AM
Subscribers

Details

Summary

Modify processOutboundP2PMessages function so that it sends all automatically_retried messages when called without parameters. Add an effect scheduling the retry job.

https://linear.app/comm/issue/ENG-8729/automatic-retries-for-non-composable-dms

Depends on D12746

Test Plan

Tested on both native and web: modified our text message sending logic so that DMOps are generated and scheduled when we send a message:

  1. Sent a message and checked if sending messages was attempted.
  2. Modified the logic in processOutboundP2PMessages so that every other message fails. Checked if the retry was attempted after 30s.

Diff Detail

Repository
rCOMM Comm
Branch
dms (branched from palys-swm/dms)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jul 15 2024, 4:55 AM
Harbormaster failed remote builds in B30325: Diff 42287!
tomek requested review of this revision.Jul 16 2024, 5:25 AM
lib/tunnelbroker/peer-to-peer-context.js
57 ↗(On Diff #42344)

Probably missed this in an earlier diff, but why are we representing true as '1'?

lib/tunnelbroker/peer-to-peer-context.js
57 ↗(On Diff #42344)

I had some trouble finding a layer where we can convert SQLite "boolean" - INTEGER into the JS boolean and decided that using a string instead is safe and easy. Looked again at it and found an easy solution - I'm going to update the diffs with it.

kamil added inline comments.
lib/tunnelbroker/peer-to-peer-context.js
186 ↗(On Diff #42381)
This revision is now accepted and ready to land.Jul 18 2024, 6:36 AM