setMaximumWorkerIdleTime(-1) doesn't disable worker timeout
See original GitHub issuemonaco-editor version: 0.15.6 Browser: Chrome 72.0.3626.96, Firefox 65.0, Edge 44.17763.1.0 OS: Windows 10 Pro 1809 (17763.253)
Steps or JS usage snippet reproducing the issue:
Navigate to the following JSFiddle: https://jsfiddle.net/jcoutch/vb76yo38/
After the Monaco editor loads, wait a few minutes, then start making changes in the loaded model. The ‘test-class’ reference will no longer be found by Monaco, even though the model is still loaded in memory, and I’m setting the maximum worker idle time to -1 to prevent the worker from going idle.
Even though the code is only setting the worker idle time for TypeScript, I’ve also tried setting the idle time on monaco.languages.typescript.javascriptDefaults
with the same result.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
gunicorn - Frequent worker timeout - Stack Overflow
It works like a clock.. So, Do: 1) open the gunicorn configuration file. 2) set the TIMEOUT to what ever you need -...
Read more >How to resolve the gunicorn critical worker timeout error?
If above fix doesn't work, then increase Gunicorn timeout flag in Gunicorn configuration, default Gunicorn timeout is 30 seconds.
Read more >Gunicorn increase timeout doesnt takes effect - DigitalOcean
I have a minimal flask api deployed on digital ocean wich trhows this error when i do a large request: [1] [CRITICAL] WORKER...
Read more >CHANGELOG.md - code room
Thank you Contributions to `monaco-editor`: * [Sebastián Gurin (@cancerberoSgx)](https://github.com/cancerberoSgx): fix worker paths in parcel [PR ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@raedle I tried your suggestion and it seems to work for me, though it is annoying. I have a varying amount of files so I did this
It would be nice if this was something we could set in the configuration.
I was running into the same issue and found a workaround that worked in my case. The workaround makes an edit to the secondary (imported) model every 50s to prevent the typescript worker from killing itself.
The did not change in my case. It might change for projects with multiple models. Happy to hear back from others (if it worked).
Here is an example for the Monaco editor playground: