Job Executor get Retries() method always returns '3' the first time.

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Unresolved
    • Priority: L3 - Default
    • None
    • Affects Version/s: 7.9.0
    • Component/s: None
    • None
    • Environment:
      Linux Debian 7.11
      Camunda Tomcat Bundle 7.9.0
      Java 8

      Reference in the forum: https://forum.camunda.org/t/job-executor-getretries-is-wrong-in-some-cases/9470/5

      The first time a task is executed under a job, it is getting a false number of retries left. That's misleading. Example with a script Task in groovy:

      jobExecutorContext = Context.getJobExecutorContext();
      println jobExecutorContext.getCurrentJob().getRetries();
      throw new Exception("...");

      And in the task fields I set Retry Time Cycle to be: "R10/PT10"

      Expected: In the log, the first time I get a number that shoud be consistent with the retry cycle I set for the asychronous task
      10
      ... (Exception)
      9
      ... (Exception)
      8 ... and so on until 1.

      What currently happens: the first number is always '3'.
      3
      ... (Exception)
      9
      ... (Exception)
      8 ... and so on until 1

            Assignee:
            Unassigned
            Reporter:
            Michele Zanarotti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: