Fix(booking-job): Handle sleep after reloading
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
This commit is contained in:
@@ -653,7 +653,7 @@ func triggerFuturePageRefresh(page *rod.Page) func() {
|
|||||||
case <-time.After(540 * time.Second):
|
case <-time.After(540 * time.Second):
|
||||||
log.Println("Reloading page")
|
log.Println("Reloading page")
|
||||||
page.MustReload()
|
page.MustReload()
|
||||||
page.MustWaitLoad()
|
time.Sleep(5 * time.Second)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
return cancelFunc
|
return cancelFunc
|
||||||
|
|||||||
Reference in New Issue
Block a user