|
|
@ -448,13 +448,14 @@ func selectBookingSlot(ctx context.Context, page *rod.Page, timeCode string, del |
|
|
|
|
|
|
|
needToWait = true |
|
|
|
|
|
|
|
log.Printf("[%d] Maintenance modal detected on booking page", delay) |
|
|
|
time.Sleep(1000 * time.Millisecond) |
|
|
|
} |
|
|
|
|
|
|
|
// Start probing
|
|
|
|
reportedTicketDetails := false |
|
|
|
completed := false |
|
|
|
retries := 3 |
|
|
|
retries := 5 |
|
|
|
for !completed { |
|
|
|
if retries <= 0 { |
|
|
|
log.Printf("[%d] Used up retries. Exiting.", delay) |
|
|
|