@Bean
  Task<Void> sampleOneTimeTask() {
    return Tasks.oneTime(BASIC_ONE_TIME_TASK)
        .execute(
            (instance, ctx) -> {
              log.info("I am a one-time task!");
            });
  }
Define a one-time task which have to be manually scheduled.
examples/spring-boot-example/src/main/java/com/github/kagkarlsson/examples/boot/config/BasicExamplesConfiguration.java