flowable / flowable/flowable-engine

AsyncExecutor `TimerJobAcquisition` does not support tenant

Open
#3,429 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

**Describe the bug**
```ini
flowable.async-executor-activate=true
flowable.process.async.executor.async-job-acquisition-enabled=true
flowable.process.async.executor.timer-job-acquisition-enabled=true
```

```java
@Bean
configuration.setAsyncExecutorTenantId(TENANT_ID);
```

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

[MybatisJobDataManager.findJobsToExecute](https://github.com/flowable/flowable-engine/blob/flowable-release-6.6.0/modules/flowable-job-service/src/main/java/org/flowable/job/service/impl/persistence/entity/data/impl/MybatisJobDataManager.java#L62) has no [WHERE TENANT_ID = ?](https://github.com/flowable/flowable-engine/blob/flowable-release-6.6.0/modules/flowable-job-service/src/main/resources/org/flowable/job/service/db/mapping/entity/Job.xml#L51)

[MybatisTimerJobDataManager.findJobsToExecute](https://github.com/flowable/flowable-engine/blob/flowable-release-6.6.0/modules/flowable-job-service/src/main/java/org/flowable/job/service/impl/persistence/entity/data/impl/MybatisTimerJobDataManager.java#L105) has no [WHERE TENANT_ID = ?](https://github.com/flowable/flowable-engine/blob/flowable-release-6.6.0/modules/flowable-job-service/src/main/resources/org/flowable/job/service/db/mapping/entity/TimerJob.xml#L148)

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.