cancel
Showing results for 
Search instead for 
Did you mean: 

Specifying where particular async task runs

mmalczewski
Champ in-the-making
Champ in-the-making
Hi Activiti Experts,

Short question:
Is it possible to specify where (on which instance) a *specific* task is executed in a multi-instance setup?

Rationale:
I want to use Activiti for handling our backend operations. An example technical workflow consists of 3 steps:
1. Extract data
2. Transform data
3. Persist data

All these are handled asynchronously (Activiti serves as kind of a persistent job queue). Steps 1 and 3 are lightweight, step 2 is heavy. I want to scale the system out by adding additional instances with task executors fust for the purpose of handling the 2nd step. The problem is - they handle all asynchronous tasks.
Is it possible (without having to rewrite how AsyncExecutor queries jobs)? Or does the entire approach abuse what Activiti is made for?

Thanks
f
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
No, currently the job executor does not have this kind of job prioritization on board.
The job executor implementation is pluggable though, but implementing this would require having a 'special'job executor' that uses different queries to fetch the jobs before feeding it to the executor.