flowable-engine icon indicating copy to clipboard operation
flowable-engine copied to clipboard

AsyncExecutor `TimerJobAcquisition` does not support tenant

Open hbrls opened this issue 3 years ago • 0 comments

Describe the bug

flowable.async-executor-activate=true
flowable.process.async.executor.async-job-acquisition-enabled=true
flowable.process.async.executor.timer-job-acquisition-enabled=true
@Bean 
configuration.setAsyncExecutorTenantId(TENANT_ID);

The below methods do not use the property TENANT_ID. So jobs from all tenants are selected.

MybatisJobDataManager.findJobsToExecute has no WHERE TENANT_ID = ?

MybatisTimerJobDataManager.findJobsToExecute has no WHERE TENANT_ID = ?

Expected behavior I want 2 tenants in the same database. And 2 apps with self properties to acquire its own jobs.

Additional context ver 6.6.0

hbrls avatar Aug 12 '22 07:08 hbrls