-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: There's obviously more work to be done here, but in the meantime this commit removes the global limit on the number of syncback actions that can be tried concurrently. Instead, it bounds the number of concurrent syncback greenlets for each (account_id, action_type) pair. The reason for this is that previously, if say archiving was broken for a particular account, but there were a bunch of archive actions outstanding for it, the entire syncback service could grind to a halt. Not ideal. Smaller associated changes: * Make the SyncbackWorker class just be a simple function. * Refactor to hoist sleeping-before-retrying out of the database session scope. * Remove nested database session in delete_draft. Test Plan: Run some syncback actions. Reviewers: charles Reviewed By: charles Differential Revision: https://review.inboxapp.com/D440
- Loading branch information
Showing
2 changed files
with
52 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters