Try to fix reschedules in seconds
Some checks failed
Push image to registry / build-image (push) Has been cancelled
Some checks failed
Push image to registry / build-image (push) Has been cancelled
This commit is contained in:
@ -194,6 +194,11 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
|
||||
$availibleInButton = $browser->driver->findElement(WebDriverBy::xpath('//button[contains(@class, "daily-free-banner__button")]'));
|
||||
if ($availibleInButton->getAttribute("disabled") == "true") {
|
||||
$hours = $availibleInButton->getText();
|
||||
// If the text is like "in 26 sec." we need to put one minute
|
||||
if (str_contains($hours, "sec")) {
|
||||
$this->reschedule(60);
|
||||
return;
|
||||
}
|
||||
$hours = explode(" ", $hours);
|
||||
$minutes = $hours[4];
|
||||
$hours = $hours[2];
|
||||
|
Reference in New Issue
Block a user