[16.0][IMP] queue_job: retry concurrency errors wrapped in other exceptions #1013
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.52) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 412 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.360
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #1013"
general
weight: 0.35
RicardCForgeFlow
A job that fails with a serialization failure, deadlock or lock timeout is retried only if the error reaches the runner as an OperationalError. When some code wraps it in another exception (Odoo does it in auth_signup, for example), the job fails and is never retried.
The runner now looks for the concurrency error in the exception chain before deciding. Errors raised by the job itself and any other error behave as before.
Example of job failed with this kind of error and not retried:
<img width="1249" height="740" alt="image" src="https://github.com/user-attachments/assets/ec67cfe9-ee06-4046-ba2c-d6b276a4ff2f" />