title: Change the cron value inside the @Schduled annotation after each execution
body: <p>How to change the value of <code>cron</code> dynamically after each execution of the method <code>execute</code> </p>
  
  <pre><code>@Component
  @EnableScheduling
  public class PendingOrderScheduler {
  
      private final Logger logger;
      private final OrderService orderService;
  
      public PendingOrderScheduler(Logger logger, OrderService orderService) {
          this.logger = logger;
          this.orderService = orderService;
      }
  
      @Scheduled(cron = "*/1 * * * * *")
      public void execute() {
          logger.info(String.format("Executed at %s", new Date()));
          this.orderService.updatePendingOrder();
      }
  }
  </code></pre>