Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9654

Batch total jobs number is off by one

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.11.0, 7.11.0-alpha2
    • None
    • engine
    • None

      We calculate the total number of jobs as (int) Math.ceil(processInstanceCount / invocationsPerBatchJob); in a couple of places (e.g. https://github.com/camunda/camunda-bpm-platform/blob/7.10.0/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/ProcessInstanceModificationBatchCmd.java#L103). Math.ceil does nothing here. Should rather do +1 if mod is != 0.

      We don't seem to use this value internally for batch processing, so the impact is purely on reporting currently.

        This is the controller panel for Smart Panels app

              yana.vasileva Yana Vasileva
              thorben.lindhauer Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: