Logging automatic retries / Actual Retry Count in the Cockpit?

Hi,
we are looking for a way to see if a task had automatic retries.

Is there an option to see the actually done retries on a task in the cockpit?

Or can we turn on logging / is the number of the current retry count already logged somewhere? We can’t seem to find it in our quite extensive splunk logs…we are pretty sure we have retries but it would be great to have camunda tell us :slight_smile:

thank you,
Boris

Hello @Boris-S ,

you could implement a custom FailedJobRetryCmd.

Am example can be found here:

I hope this helps. And sorry I didn‘t have this in mind in the afternoon :sweat_smile:

Jonathan

1 Like

If you use the enterprise version of Camunda, then you have the history view of a process instance. There you have a “Jobs Log” tab where you can see how and when jobs were executed and what the result was (success or failure).

Since this is displayed I assume that the data is present in the DB. So, if you happen to use the community version, you can query the data via API. I don’t know which service can deliver this data.

2 Likes

thanks @jonathan.lukas @fml2

I now found a job which failed and got successfully retried (I guess"Due Date" is set after a failure for the next retry?)

However, I would have expected “Retries” to be decremented… but it stayed the same.

(A runtime Exception is thrown during the Delegate Call).

Hello @Boris-S ,

did you already apply custumization to the retry failed job command?

Jonathan

Good point, not that I am aware of anything - but we use some common framework/configurations, I need to check if something is done there…

1 Like

@jonathan.lukas Are you suggesting that the behaviour I am observing is customized?

Hello @Boris-S ,

when reproducing it, I can see that number should decrease for each retry.

Maybe the from me suggested defaultNumberOfRetries should be replaced with failedJobRetryTimeCycle and an ISO-8601 expression.

Jonathan

Jonathan

Well, I don’t know, I haven’t implemented anything… I was assuming we have standard Camunda behaviour

thx,
Boris