Closed ellik95 closed 4 years ago
The onReady() doesn't get called as well if this helps.
worker.on('ready', () => {
console.log('worker is ready!');
});
is working for me
Thank you I was using
const zbWorker = zbc.createWorker({
taskType: 'demo-service',
taskHandler: handler,
onReady: () => console.log(`Worker connected!`),
onConnectionError: () => console.log(`Worker disconnected!`)
})
instead. Now the onConnectionError() gets called as well, but are these errors normal? We saw that workers continue to work so we don't need to reconnect them when there is an error right?
I think there should be some re-connect logic built-in. The system itself is built as fault tolerant, i hope that this should be already handled... :D
We hope as well thank you :)
Hello!
We are facing some errors on the workers side, but the onConnectionError() never gets called. For example:
Also when we create a workflow instance the workers continue to work despite those errors, so I suppose these errors shouldn't affect us right? We use latest version of library (0.24).