Lock SCSS so we only run 1 job at a time#15794
Conversation
91ea074 to
6b63513
Compare
|
Has anybody been able to reproduce this locally yet? |
|
@ChristophWurst I tried running multiple same instance after a css cache clear and I got no issue whatsoever :) |
That would be awesome! |
b89fbb2 to
03b960e
Compare
|
I fixed a few stuff. Also, why is deleting the cache taking so long? @rullzer @nickvergessen @juliushaertl ? |
|
@rullzer for you :) |
|
512294a to
b34b5e9
Compare
This is bit hacky but a start to lock the SCSS compiler properly Retry during 10s then give up Properly get error message Do not clear locks and properly debug scss caching Signed-off-by: Roeland Jago Douma <[email protected]>
b34b5e9 to
f8aeef7
Compare
|
Ok lets do this! |
|
/backport to stable16 |
|
backport to stable16 in #16541 |
|
@rullzer Hello, this is causing extreme slowdowns in production because the lock never gets acquired. I think it's never a good idea to sleep in a PHP script because users will be waiting, this totals to 60 seconds of wait time on every single page in Nextcloud, my users are going crazy. I am on 18.0.4 |
Fixes nextcloud#15794 (comment) Signed-off-by: Leo Le Bouter <[email protected]>

This is bit hacky but a start to lock the SCSS compiler properly
Right now it will just fail if the file is locked. This is suboptimal. But for the POC this is fine IMO.
Todo:
@ChristophWurst @MorrisJobke as discussed