internal modifications

This commit is contained in:
Suriya
2026-08-04 20:44:42 +05:30
parent 588f84c344
commit 77a723e047
3 changed files with 89 additions and 0 deletions

View File

@@ -65,6 +65,11 @@ func AssignCRMMiler(bookingID int) {
"booking_id", bookingID,
"max_retries", maxRetries,
)
// Terminal failure — same handoff as the B2C path. Both entry points must
// publish, or failures arriving via the CRM console stay invisible to the
// DispatchAgent.
publishAssignmentFailed(bookingID, reasonNoMilerAvailable)
}
// tryAssign performs a single attempt: queries Redis GEO, scores candidates, commits.