Comments (5)
Thanks. Some questions/thoughts:
- Is there a downside to just setting a higher value like 100?
- Is this something users will want to fiddle with?
- Can we automatically set max listeners according to the configured
maxWorkers
option?
from workerpool.
- Could be harder to detect potential memory leak, although I saw similar fixes for worker implementations.
- Possibly yes, in some cases it can narrow down the place where leak could occur.
- Maybe, I would need to check a bit more the implementation to make sure it's feasible (e.g. are the listeners cleared/shared across the worker calls).
from workerpool.
Ok so it makes sense to have the setting configurable, like for debugging memory leaks. It would be nice if we can reuse maxWorkers
for this I think, please let me know if you think that will work.
from workerpool.
Uhhh, it turned out that it's not workerpool
fault and everything works as expected here (only one listener for parent and one for child thread) . The issue was with sentry
initialization during job execution. Sorry!
from workerpool.
from workerpool.
Related Issues (20)
- support worker execArgv HOT 2
- Fix the code coverage script HOT 1
- App bundle fails to start worker, with message : "Worker is terminated" HOT 1
- Type of error is not kept when error goes from inside to outside the workerpool HOT 1
- Uncaught SyntaxError: Unexpected token '<' (at worker.ts:1:1) HOT 1
- Send event / message to running Worker? HOT 11
- Concurrent async tasks on a single worker HOT 1
- Unsafe-eval violation HOT 2
- Main node process crashes with OOM error HOT 3
- How to use with typescript HOT 2
- Error: TimeoutError: Promise timed out after 600000 milliseconds HOT 4
- Update type definitions with the new 'Transfer' options HOT 3
- Send message to persistent worker's stdin HOT 7
- Cannot use import statement outside a module (in Vite) HOT 15
- Possible bugs in the code. HOT 3
- child_process.spawn() or child_process.exec() HOT 1
- TypeError: process.send is not a function HOT 4
- (question) How to override the .exec function ? HOT 2
- How to use TypeORM or Prisma inside worker ? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workerpool.