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

Provide ability to set a custom retry failed job cycle for custom jobs

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Fix
    • L3 - Default
    • None
    • None
    • None
    • None

    Description

      Consider:

      https://github.com/camunda/camunda-bpm-platform/blob/master/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DefaultJobRetryCmd.java#L71

       

      In order to implement a custom retry failed job cycle it must currently be attached to a Activity, which is attached for a Process Def within the Deployment Cache as per:

      https://github.com/camunda/camunda-bpm-platform/blob/729c7fac61b7d8f79f4f04550d10c7fc0f9dc6b4/engine/src/main/java/org/camunda/bpm/engine/impl/cmd/DefaultJobRetryCmd.java#L124

       

      It would be great if when creating a custom Job such as:

       

      ```

      val job = MessageEntity()
      val config = MyJobHandlerConfigClass(myConfig)
      job.jobHandlerType = "some-job"
      job.jobHandlerConfigurationRaw = config.toCanonicalString()

      cc.jobManager.send(job)

      ```

       

      You can define a failed job retry cycle.  This will allow custom jobs to take advantage of the failed job retry cycle capability for when custom jobs are not specifically attached to an activity id/process def.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              StephenOTT Stephen Russett
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce