I am using c8run 8.8.2 with camunda-spring-boot-starter 8.8.2
And I defined the JobWorker as follows:
@Service
@Slf4j
public class ReminderEmailJob {
@JobWorker(type = “reminderEmailListener”, autoComplete = true)
public void handleJobReminderEmailListener() {
log.info(“############## ReminderEmailJob #############”);
}
}
I am using security with Open ID Connect with camunda.client.enabled=false
and my custom camunda client configuration is as follows:
@Configuration
public class CamundaClientConfig {
@Bean
public CamundaClient camundaClient() {
CamundaClientBuilder builder = CamundaClient.newClientBuilder();
builder.credentialsProvider(new BearerTokenCredentialsProvider());
builder.restAddress(URI.create("http://localhost:8080"));
builder.grpcAddress(URI.create("http://localhost:26500"));
builder.preferRestOverGrpc(false);
builder.defaultJobWorkerTenantIds(List.of("<default>"));
builder.defaultJobPollInterval(Duration.ofMillis(100));
builder.defaultJobWorkerMaxJobsActive(32);
builder.defaultJobWorkerName("default");
builder.defaultJobTimeout(Duration.ofMinutes(5));
builder.defaultJobWorkerStreamEnabled(false);
return builder.build();
}
}
When running my application, and the workflow reaches for the job worker step, the job worker is never getting called, and no error is thrown in operate and no errors in the app log or camunda log also.
so what configuration am I missing to activate the job worker?