Wait for daily free if less than a minute
Some checks failed
Push image to registry / build-image (push) Failing after 3m45s

This commit is contained in:
2025-03-02 09:40:07 +01:00
parent 599ef77d64
commit cdcdcd9e8b

View File

@ -205,9 +205,10 @@ class HellcaseJob extends BrowserJob implements ShouldBeUniqueUntilProcessing
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(1);
return;
if (!str_contains($hours, "hr")) {
// $this->reschedule(1);
sleep(60);
return $this->getDailyFree($browser);
}
$hours = explode(" ", $hours);
$minutes = $hours[4];