In common/submission.rs:submission_status we have the following comment:
// NOTE: The order is important here; a concurrent writer could move a submission
// from Paused to InProgress/Cancelled in-between the queries.
// from InProgress to Completed/Failed/Cancelled in-between the queries.
Instead of relying on our attention to detail. Let's rewrite the queries here to use a transaction and/or merge them into a single query using UNION ALL.
Found in #132 (comment).
In
common/submission.rs:submission_statuswe have the following comment:Instead of relying on our attention to detail. Let's rewrite the queries here to use a transaction and/or merge them into a single query using
UNION ALL.Found in #132 (comment).