In the camunda spring-boot example project I tried to set the default-number-of-retries to 0.
With this configuration it always fails the process on start.
Is that a Bug?
I want to set the default number of retries to 0, cause i only want to have manual retries allowed.
I have a spring-boot project with a simple BPMN-Process build in the Camunda-Modeler.
My Application has a REST-Endpoint within a new ProcessInstance of my BPMN is started.
I have a IncidentHandler which is loggin many informations about the processengine.
I start my Application with camunda.bpm.default-number-of-retries = 0
When i start a new ProcessInstance by sending a REST-Request to my Application, it tries to create a new ProcessInstance but it failes directly when the default number of retries = 0.
There is no stacktrace for detailed information.
My IncidentHandler is logging the context of the Incident, but it also has no detailed information.
This is my Log-output:
Can you explain in more detail what your setup looks like?
Also upload you model.
Can you also check the logs to see if any errors are appearing in there.
looking into the documentation for .default-number-of-retries it states
Specifies how many times a job will be executed before an incident is raised
The name of that configuration option might be a bit misleading, I would agree.
So you are basically telling the engine to never execute the job but throw an incident directly. It does not have a stacktrace yet since nothing went wrong with the job itself.
Setting this option to 1 should therefore actually get you where you wanted to go, assuming you wanted jobs to only being executed at most once automatically.
The solution doesn’t solve the problem. By setting default-number-of-retries to 1, Camunda does 1 fail retry after an exception. What I what is no retries at at all. I can’t achieve this by setting it to 1.
last that I tried with an example locally I got the expected result.
Can you upload an example that fails reproducibly and tell us what indicates that it does not work?
This can be a ZIP file or a GitHub project or something like that, whatever suits you best.