Give up after 10 seconds in SCSS timeout

Else we keep idling for ages which leads to bad UX

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-06-19 14:39:31 +02:00 committed by backportbot[bot]
parent 8f35a66100
commit 88e121d684
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ class SCSSCacher {
return $this->injectCssVariablesIfAny();
}
$this->logger->debug('SCSSCacher: scss cache file locked for '.$lockKey, ['app' => 'core']);
sleep($retry);
sleep(1);
$retry++;
}
$this->logger->debug('SCSSCacher: Giving up scss caching for '.$lockKey, ['app' => 'core']);