Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1368989 - Fix integrity error during pulse job ingestion
Instead of hitting an exception and logging that when we get two jobs with the same guid during ingestion, we will now use a get_or_create to try to create it, but not throw an exception if we can't because it's JUST been created right after the check. This case looks to only happen when a pending and running job with the same guid are being processed by different workers/dynos simultaneously. So the worst that would happen would be that a job would look pending longer and then become complete immediately.
- Loading branch information
Cameron Dawson
committed
Jul 12, 2017
1 parent
3a16745
commit cf71576
Showing
1 changed file
with
32 additions
and
25 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