-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 :) |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good 👍
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 <roeland@famdouma.nl>
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 <lle-bout@zaclys.net>
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