Closed Kevinoh47 closed 4 months ago
Click to see where and how coverage changed
File Statements Missing Coverage Coverage
(new stmts)Lines missing
jobmon_server/src/jobmon/server/web/routes/v2/fsm
workflow_run.py
324-340
Project Total
This report was generated by python-coverage-comment-action
220 tests ±0 215 :white_check_mark: ±0 18m 30s :stopwatch: -5s 1 suites ±0 5 :zzz: ±0 1 files ±0 0 :x: ±0
Results for commit cbb0d3f7. ± Comparison against base commit decb2804.
This PR has been superseded by https://github.com/ihmeuw-scicomp/jobmon/pull/117, although the updates intended for that PR also found there way into this one and the tests passed for both PRs. I am closing this one to make room for the latter one.
This is an attempt to prevent deadlocks on updates by selecting the rows to be updated first using the with_for_update method, which should set intent locks before the update statement is run.
This needs to be tested.
If it succeeds, this pattern could be used elsewhere.
I have attempted to use it in set_status_for_triaging, which is throwing a large number of deadlocks.