I was running worker in one instance and it says: 13:16:00.827 [main] INFO i.t.s.b.a.template.WorkersTemplate - Creating configured worker for a task queue ACT-TXN-TASK-QUEUE 13:16:00.864 [main] INFO i.t.s.b.a.template.WorkersTemplate - Registering auto-discovered workflow class class helloworldapp.versioning_strategy.workflow.impl.ClientTxnWorkflowImpl on a worker ‘transactionWorker’ with a task queue ‘WORK-TXN-TASK-QUEUE’
I was trying to get the worker in another instance @Autowired WorkflowClient workflowClient;
This workflowClient can be autowired successfully, but getWorker throws exception: Caused by: java.lang.IllegalArgumentException: No worker for taskQueue. May i know how should I properly get worker?
Our worker is running in one micro service. The Stop command will be triggering from another service controlled by ops team.
So in ops service this will be the config, the start workers will be set to false and no worker will be registered there.
spring:
application:
name: application
temporal:
connection:
target: 127.0.0.1:7233
namespace: default
start-workers: false
So it failed to autowire worker factory.
Any solution to stop a particular worker from another service?