We are using zeebe 8.5 in a self managed kubernetes environment. We execute workflows with the create process instance with result api by specifying a timeout.
We have observed that workflow executions that fail with DEADLINE_EXCEEDED status code or with RESOURCE_EXHAUSED, CANCELLED status codes are automatically retried. We could see our job workers getting called multiple times for such workflow executions.
We pass retry count as 0 in job fail commands for job failures but this does not prevent the process instance to be retried in the situations mentioned above.
We do not want our workflow executions and jobs to be retried. We tried configuring zeebe.client.useDefaultRetryPolicy: 'false' in our application properties but that didn’t help.
From this github comment we came to know that there is a service policy for retries based on error types.
Kindly guide on the steps to disable retires for all error types.
Thanks.