async executor with all jobs set to exclusive executes in parallel

Description

Based on the question here: http://forums.activiti.org/content/job-executors-and-exclusive-jobs


Question: why is the behavior for (B) parallel when I expect it to be sequential (because exclusive = true)

(A) Non-async, exclusive jobs
mvn -Dtest=SynchronousExclusiveTest#queryTask test
Expect: sequential execution of scriptTaskA and scriptTaskB
Observed: sequential execution of scriptTaskA and scriptTaskB

(B) Async, exclusive jobs
mvn -Dtest=AsynchronousExclusiveTest#queryTask test
Expect: sequential execution of scriptTaskA and scriptTaskB
Observed: parallel execution of scriptTaskA and scriptTaskB

(C) Async, non-exclusive jobs
mvn -Dtest=AsynchronousNotExclusiveTest#queryTask test
Expect: parallel execution of scriptTaskA and scriptTaskB
Observed: parallel execution of scriptTaskA and scriptTaskB

Environment

None

Attachments

Assignee

Joram Barrez

Reporter

Louis

Labels

None

Components

Fix versions

Priority

Medium
Configure