Currently if job execution fail then next execution is made immadiate (three times until sucessfull).
There can be a small delay depending from the amount of jobs waiting for execution but i think it is insufficient.
We need more configuration, firs for all:
- the delay between each retry
- configurable the amount of retries
Both values should be configured in JobExecutor.
i think to allow configure delay between each retries is required a new column NEXT_ATTEMPT_TIME in ACT_RU_JOB table.
It should be filled and calculeted during job aquisition and recalculated in DecrementJobRetriesCmd after each fail.