You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
})
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
The text was updated successfully, but these errors were encountered: