User Story (Required on creation):
In some cases of job failure, automated retries do not help (e.g. if there is an external cause of the failure that needs to be resolved first). It should be possible disable retries in the job executor in that case and immediately raise an incident.
Functional Requirements (Required before implementation):
- It is possible to mark specific job failures that should immediately set a job's retries to 0 (and thus raise an incident)
Technical Requirements (Required before implementation):
- The exact technical approach is to be specified
If the application code can tell whether a retry would help, it could throw a BpmnError so that the process takes a special path. In that path, you'd create an incident.