Moves all lookup and status change operations behind a singular lock to prevent the race condition where a status change could happen between looking up the DB record and looking up the S3 record. This does not prevent the race condition from happening cross campus, if something has gone wrong where both campuses are operating on the same job.
Description
Moves all lookup and status change operations behind a singular lock to prevent the race condition where a status change could happen between looking up the DB record and looking up the S3 record. This does not prevent the race condition from happening cross campus, if something has gone wrong where both campuses are operating on the same job.
PR Checklist