Information about multiple workers in the system. Used when managing multiple task queues.
const workers = temporalService.getAllWorkers();workers.forEach(worker => { console.log(`Worker ${worker.taskQueue}: ${worker.status.isRunning ? 'running' : 'stopped'}`);}); Copy
const workers = temporalService.getAllWorkers();workers.forEach(worker => { console.log(`Worker ${worker.taskQueue}: ${worker.status.isRunning ? 'running' : 'stopped'}`);});
Information about multiple workers in the system. Used when managing multiple task queues.
Example