Interface: CreateWorkerResult
Defined in: src/interfaces.ts:838
Result of creating a new worker dynamically.
Example
const result = await temporalService.createWorker({
taskQueue: 'new-queue',
workflowsPath: './dist/workflows',
autoStart: true
});
if (result.success) {
console.log(`Worker created for queue: ${result.taskQueue}`);
}
Properties
error?
optionalerror?:Error
Defined in: src/interfaces.ts:841
success
success:
boolean
Defined in: src/interfaces.ts:839
taskQueue
taskQueue:
string
Defined in: src/interfaces.ts:840
worker?
optionalworker?:Worker
Defined in: src/interfaces.ts:842