Job Execution : where is retry cycle configuration?

From blog post on camunda Spring boot 2.0.0 :

Job Execution
Threadpool-size and retry-cycle can now be configured via application properties.

But I couldn’t find the retry-cycle part.
Doc has no reference to retry.

Thanks

Hi @ludoo0d0a,

The property you are looking for is failedJobRetryTimeCycle from the process engine configuration so please try:
camunda.bpm.failedJobRetryTimeCycle: R5/PT5M for example

Best regards,
Yana

Thanks but how to set the default value from application properties (with camunda-bpm-spring-boot-starter)?

Is it related to #145 or Context.getProcessEngineConfiguration().getDefaultNumberOfRetries();
or commandContext.getProcessEngineConfiguration().getFailedJobListenerMaxRetries();
The last getFailedJobListenerMaxRetries method is set to 3, where I want only 1.

Can the following bean be used ?

@Bean
public static CamundaFailedJobConfiguration failedJobConfiguration() {
return new DefaultFailedJobConfiguration();
}

I finally achieved what I wanted by adding this config :

	@Bean
public CamundaProcessEngineConfiguration camundaProcessEngineConfiguration() {
	return new CollWkfProcessEngineConfiguration();
}

and

@Configuration
public class MyProcessEngineConfiguration extends DefaultProcessEngineConfiguration {

//custom job retry value: 1
@Value("${camunda.bpm.job-execution.default-number-of-retries:1}")
private int defaultNumberOfRetries;

//custom failedJobRetryTimeCycle Retry once (R1), 1 minute between each try (PT1M)
@Value("${camunda.bpm.job-execution.failed-job-retry-time-cycle:R1/PT1M}")
private String failedJobRetryTimeCycle;

@Override
public void preInit(SpringProcessEngineConfiguration configuration) {
	super.preInit(configuration);
	configuration.setDefaultNumberOfRetries(defaultNumberOfRetries);
	configuration.setFailedJobRetryTimeCycle(failedJobRetryTimeCycle);
 }
}