stencil-cli
stencil-cli copied to clipboard
stencil bundle times out after 20 secs
It seems like the stencil bundle
command always times out after 20 seconds. Is there a way to increase the time allowed to process before that happens?
This happens even on default theme packages with no changes from me. Different themes fail on different steps, but I can't get any to complete a bundle.
Expected behavior
Creates bundle
Actual behavior
Will run tasks for 20 seconds and then return failed -- worker timed out
.
Steps to reproduce behavior
Run stencil bundle
Info
Windows 10 build 18363.1198 WSL 2 with Ubuntu 20.04.1 LTS node version 12.19.1 stencil version 3.0.3
@junedkazi @bookernath
At the moment the timeout is hardcoded here.
Probably it makes sense to move out the timeout value as a separate CLI option, e.g. stencil bundle --timeout 60
.
It will be useful for such cases when people have huge themes and/or slow computers.
If you approve - I'll create a corresponding ticket.
P.S. just in case, checked, stencil bundle
works normally for me.
So I upgraded my RAM in hopes it would solve this issue, but it did not help. A CLI option to set the timeout would be very helpful! (I did get around it by editing the file you linked above right in the stencil-cli module and increasing the timeout to 60 secs.)