Open ThorbenLindhauer opened 6 years ago
Behavior is more intuitive.
Additional database queries on creating jobs lead to a higher load: the process definition (when not cached), execution, and variables (to resolve expressions containing variables) must be queried to get the failed job retry configuration from the activity, parse, and evaluate it.
R0/PT30S
should lead to an initial retries count of 1
.https://github.com/camunda/camunda-bpm-platform/tree/2300-fix-initial-retries
This issue was imported from JIRA:
What is this name?
This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.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:
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
Links: