Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SIGNAL-7190 Task.await_many for batch operations (#110)
## Related Ticket(s) SIGNAL-7190 <!-- Enter the Jira issue below in the following format: PROJECT-## --> ## Checklist <!-- For each bullet, ensure your pr meets the criteria and write a note explaining how this PR relates. Mark them as complete as they are done. All top-level checkboxes should be checked regardless of their relevance to the pr with a note explaining whether they are relevant or not. --> - [x] Code conforms to the [Elixir Styleguide](https://github.com/christopheradams/elixir_style_guide) ## Problem Task.async operations to finish before finishing up the batch because it’s “going too fast” and DB can’t keep up (afraid same thing might happen in prod). ## Details We’ll use Task.await_many as the back pressure, as that delays batching function to finish, and increasing the time to finish is the back pressure onto receiving more messages.
- Loading branch information