Hello,
we were wondering if it’s possible to directly create an incident and not do any retries inside a task.
For example, a task can have multiple types of exceptions. If exception A occurrs then no amount of retries will let the task succeed, while a retry might succeed in case of one of the other types of exceptions. So, letting the task fail upon exception A would save some resources.
We tried creating an incident and setting the retries to 0 and 1 through the management service, but the retries-variable was overwritten afterward by the Failed Job Command Factory.
We already discussed throwing a BpmnError and letting it loop back to the task via a User Task (so a person can fix the error before retrying the task). However, while that might be a solution to our problem, it’s not really an answer to our question
Thanks