diff --git a/src/dispatch/incident_cost/service.py b/src/dispatch/incident_cost/service.py index 186739c1e19f..3c3ab5b7acc4 100644 --- a/src/dispatch/incident_cost/service.py +++ b/src/dispatch/incident_cost/service.py @@ -224,6 +224,9 @@ def calculate_incident_response_cost_with_classic_model(incident: Incident, inci # we use the role's renounced_at time participant_role_renounced_at = participant_role.renounced_at else: + # Fixes race condition where the updated incident is marked as stable, but the update flow has not yet completed. + incident.stable_at = datetime.utcnow() + # we set the renounced_at default time to the stable_at time participant_role_renounced_at = incident.stable_at