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

History cleanup scheduler doesn't consider suspension state of ever-living jobs

    XMLWordPrintable

Details

    • Bug Report
    • Status: Open
    • L3 - Default
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Environment (Required on creation):

      Any

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      The user wants to suspends the history cleanup (ever-living) jobs. However, the action is ignored and the jobs are activated automatically during the rescheduling of the jobs

      Steps to reproduce (Required on creation):

      1. Configure History cleanup batch window with degree of parallelism 1 (strategy doesn't matter) and start the engine
      2. During the execution of the history cleanup before the History cleanup rescheduling, suspend the ever-living job via REST API

      Observed Behavior (Required on creation):

      The ever-living job is activated again during the rescheduling of the job

      Expected behavior (Required on creation):

      The suspension state of the job is considered during the rescheduling of the job, the job is not activated.

      Root Cause (Required on prioritization):

      During the rescheduling of the history cleanup job where the due date of the cleanup job is updated is performed the following. The cleanup job is selected from the database, and the suspension state is set to ACTIVE:

      Solution Ideas (Optional):

      Hints (Optional):

      • In case both actions, the suspension of the job via REST API and the job reschedule are done concurrently. This leads an OptimisitcLockingException, and one of the transactions is rolled back. It can happen that the transaction of the rescheduler is rolled back, which means that the history cleanup job stays suspended and the history cleanup job is paused.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              yana.vasileva Yana Vasileva
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Salesforce