Skip to content
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

Worker Timeout, the worker process does not respond #288

Open
Sindcs opened this issue Oct 25, 2017 · 0 comments
Open

Worker Timeout, the worker process does not respond #288

Sindcs opened this issue Oct 25, 2017 · 0 comments

Comments

@Sindcs
Copy link

Sindcs commented Oct 25, 2017

when i use the started worker in the hole project,it do some task and get the error 'Worker Timeout, the worker process does not respond'.
the worker i used in project is a global object
the code like this
`var electronWorker = require('electron-workers')
const electronWorkers = electronWorker({
connectionMode: 'ipc',
pathToScript: config.childProcess.backworkerPath,
pathToElectron: config.childProcess.electronPath,
timeout: 30000,
debug: 7567,
numberOfWorkers: 1
})

electronWorkers.start(function (startErr) {
if (startErr) {
console.log(start worker err:${startErr})
log.writeErr(start worker err:${startErr})
}
})

export default electronWorkers`

and then i use electronWorkers in the hole project, but it dosen't work while do some task.
please help me
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant