Open BT-sschmid opened 3 months ago
Hi @guewen, some modules you are maintaining are being modified, check this out!
Though I generally agree with the intent of this change, there is already some rollback code in the enclosing
runjob
call, specifically a rollback in the event of aRetryableJobError
. It makes me question why theexcept (FailedJobError, Exception)
stanza doesn't rollback as well, choosing instead to grab a different cursor to commit the job state.
now I got your comment ^^ Indeed I also don't see the need to use a new cursor if the tx is rolled back. If you agree I change it to just rollback.
Fix a deadlock condition when there are dependent stored fields on
queue.job:state
.Example:
This commit adds a rollback in case of error during job execution, so that any locks are released.