@Bean
  ExecutionInterceptor mdcExecutionInterceptor() {
    return (taskInstance, executionContext, chain) -> {
      LOG.info("Setting MDC before execution");
      MDC.put(MDC_TASKNAME, taskInstance.getTaskName());
      MDC.put(MDC_TASKINSTANCEID, taskInstance.getId());
      try {
        return chain.proceed(taskInstance, executionContext);
      } finally {
        MDC.remove(MDC_TASKNAME);
        MDC.remove(MDC_TASKINSTANCEID);
      }
    };
  }
Bean defined when a configuration-property in DbSchedulerCustomizer needs to be overridden.
examples/spring-boot-example/src/main/java/com/github/kagkarlsson/examples/boot/config/SchedulerConfiguration.java