Detailed status information about the Temporal worker. Provides runtime metrics and health indicators.
const workerStatus = temporalService.getWorkerStatus();if (!workerStatus.isHealthy) { console.error(`Worker error: ${workerStatus.lastError}`); await temporalService.restartWorker();} Copy
const workerStatus = temporalService.getWorkerStatus();if (!workerStatus.isHealthy) { console.error(`Worker error: ${workerStatus.lastError}`); await temporalService.restartWorker();}
Optional
Detailed status information about the Temporal worker. Provides runtime metrics and health indicators.
Example