HomePhabricator
Diffusion Comm c9450a3b9890

[lib] Enable automatic retries for some messages

Description

[lib] Enable automatic retries for some messages

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.

Reviewers: kamil, marcin

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D12747

Details

Provenance
tomekAuthored on Jul 11 2024, 8:09 AM
Reviewer
kamil
Differential Revision
D12747: [lib] Enable automatic retries for some messages
Parents
rCOMM899ba84a2d13: [lib] Disable automatic retries of all messages and enable manual retries
Branches
Unknown
Tags
Unknown