Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11410 Camunda Engine Quarkus Extension
  3. CAM-13811

The Quarkus JobExecutor uses its own thread pool

XMLWordPrintable

      Problem:
      Quarkus provides a core thread pool executor. The Quarkus Javadocs state that this thread pool is responsible for running all blocking tasks. Quarkus also recommends that users create their own thread pools, by obtaining a bean of the ManagedExecutor interface. The implementations of this interface (e.g. SmallRyeManagedExecutor) should support asynchronous execution.

      However, when Quarkus provides an instance of ManagedExecutor, this is actually a ViewExecutor. The ViewExecutor uses the core Executor as a delegate. Since it was not clear how asynchronous execution is supported when a blocking tasks executor is used, we decided that it would be better to use a separate thread pool.

      AC:

      • The Camunda Quarkus extension uses its own thread pool, independent of the Quarkus core thread pool.
      • JobExecutor config properties are applied through reflection to avoid repetition.
      • The Job Acquisition thread runs on the Camunda Quarkus extension thread pool.

        This is the controller panel for Smart Panels app

              nikola.koevski Nikola Koevski
              nikola.koevski Nikola Koevski
              Nikola Koevski Nikola Koevski
              Tassilo Weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: