How to disable flowable-*-jobs threads

Hi,

I have a clustered environment consisting of 2 nodes and single DB. Node A is just capable of starting processes and Node B can both start and execute the processes.

But although I set async-executor-activate flag as false at Node A, I can see
“flowable-reset-expired-jobs”,
“flowable-acquire-timer-jobs”,
“flowable-acquire-async-jobs”,
“flowable-reset-expired-jobs”,
“flowable-acquire-timer-jobs”,
“flowable-acquire-async-jobs”,

threads in Node A’s thread dump. When I set this flag to false I was actually waiting nothing related to engine threads in thread dump. Do theese threads reside for a purpose or always being there in TIMED_WAITING state. I didn’t go deep into source code but is there a chance to disable these threads from starting on startup.

Thanks.

If you set the activate flag to false, it should not start any of these threads:

https://github.com/flowable/flowable-engine/blob/master/modules/flowable-job-service/src/main/java/org/flowable/job/service/impl/asyncexecutor/DefaultAsyncJobExecutor.java#L149 is called only when the whole executor is started: https://github.com/flowable/flowable-engine/blob/master/modules/flowable-job-service/src/main/java/org/flowable/job/service/impl/asyncexecutor/AbstractAsyncExecutor.java#L120

Can you perhaps debug these methods and see what is going on there, and why it does get triggered?