updates on the sweeper and eligibility things in the order
This commit is contained in:
3
main.go
3
main.go
@@ -239,6 +239,9 @@ func main() {
|
||||
// 8. Start the assignment worker. Every replica runs one; they share a
|
||||
// durable consumer, so JetStream hands each booking to exactly one of them.
|
||||
go assignment.StartAssignmentWorker()
|
||||
// Retries every unassigned pending booking on a timer, so a booking whose
|
||||
// retry window closed while no rider was free is still picked up later.
|
||||
go assignment.StartPendingSweeper()
|
||||
|
||||
// 9. Point the stop sequencer at the Route Optimization API.
|
||||
routing.BaseURL = cfg.RouteOptimizerURL
|
||||
|
||||
Reference in New Issue
Block a user