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

@@ -58,6 +58,11 @@ func AssignCustomerMiler(bookingID int) {
"booking_id", bookingID,
"max_retries", maxRetries,
)
// Terminal failure — hand off to the AI layer's DispatchAgent, which owns
// what happens next (coverage sweep, escalation). Reached only after every
// retry is exhausted, so it fires at most once per booking.
publishAssignmentFailed(bookingID, reasonNoMilerAvailable)
}
// tryCustomerAssign performs one full attempt: GEO miler search → provider selection → commit.