We're getting an error while activating our extens...
# suitecommerce
v
We're getting an error while activating our extensions: _Job execution time exceeded. The job has been IN_PROGRESS for more than 15 minutes._ This is encountered on the Sass Compiler step. We have noticed that the activation fails 3/5 times on an average, on the same step with the same error. We're using SC 2019.2.4 We will probably raise a support case for this today, but I just wanted to check if anyone has encountered the same issue recently.
j
@Viraj Shinde Hooooo boy did I deal with this issue. I contacted support about it and they suggested that I “optimize my code” because they said the files the compiler were making were too big. I spend almost a week going through my code with a fine-toothed comb to remove unnecessary mixins and includes unless I absolutely needed them, removing any kind of math or calculations on commonly used elements (like headings and list items) and making sure everything was formatted correctly, deploying and activating my theme every time. I thought I found some funky indentation stuff on some code that I had copied from Stack Overflow (I know, I know….) but it was hard to pinpoint. One thing I did almost definitely find that was causing problems was refreshing the status page too many times. If I started the activation and kept refreshing the page every minute or so, it would often fail. HOWEVER, if I started the activation and left it alone for about 6-7 minutes THEN refreshed the page, it would complete successfully. I can’t prove if that was the cause or if I found some mystery bug in my code, but I haven’t had an activation fail since I started waiting to refresh the page
v
Thanks for the elaborate response @Jacob D and also for sharing your personal experience. 😄 I get your point about optimisation and we will look into that. About the trick of not refreshing, I will give it a shot as well. You never know what might work in such situations haha.