Wait for daily free if less than a minute
Some checks failed
Push image to registry / build-image (push) Failing after 3m45s
Some checks failed
Push image to registry / build-image (push) Failing after 3m45s
This commit is contained in:
@ -205,9 +205,10 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
|
|||||||
if ($availibleInButton->getAttribute("disabled") == "true") {
|
if ($availibleInButton->getAttribute("disabled") == "true") {
|
||||||
$hours = $availibleInButton->getText();
|
$hours = $availibleInButton->getText();
|
||||||
// If the text is like "in 26 sec." we need to put one minute
|
// If the text is like "in 26 sec." we need to put one minute
|
||||||
if (str_contains($hours, "sec")) {
|
if (!str_contains($hours, "hr")) {
|
||||||
$this->reschedule(1);
|
// $this->reschedule(1);
|
||||||
return;
|
sleep(60);
|
||||||
|
return $this->getDailyFree($browser);
|
||||||
}
|
}
|
||||||
$hours = explode(" ", $hours);
|
$hours = explode(" ", $hours);
|
||||||
$minutes = $hours[4];
|
$minutes = $hours[4];
|
||||||
|
Reference in New Issue
Block a user