-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert "large" CV jobs to async basis
We dispense with the old ordering here in order to use the conventional `.find_each`. Note: order should not be a part of a scope in any case. Async CV performance should be good enough and flexible enough that we are less concerned about which row gets processed "first", since all of them will be processed "soon enough". Alternatively, we can circle back with a multi-query approach that first enumerates the distinct: `DATE_TRUNC('day', last_checksum_validation) AS last_cv ORDER BY last_cv` for expired checksums and then retrieves a batch for each day. But that can wait.
- Loading branch information
Showing
5 changed files
with
27 additions
and
118 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
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
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