@Bean
  CommandLineRunner executeOnStartup(
      Scheduler scheduler, @Qualifier("sampleOneTimeTask") Task<Void> sampleOneTimeTask) {
    log.info("Scheduling one time task to now!");

    return ignored ->
        scheduler.schedule(sampleOneTimeTask.instance("command-line-runner"), Instant.now());
  }
Example hack: use a {@link CommandLineRunner} to trigger scheduling of a one-time task.
examples/spring-boot-example/src/main/java/com/github/kagkarlsson/examples/boot/App.java