Commanded scheduler
One-off command scheduler for Commanded CQRS/ES applications using Ecto for persistence.
Commands can be scheduled in one of two ways:
- Using the
Commanded.Schedulermodule as described in the Example usage section. - By dispatching a scheduled command using your app's router or from within a process manager.
Commanded.Scheduler.schedule_once(reservation_id, %TimeoutReservation{..}, ~N[2020-01-01 12:00:00])
MIT License
Getting started and usage guides
Testing
You can run all the scheduled jobs instantly with :ok = Commanded.Scheduler.Jobs.run_jobs(run_at_date), where run_at_date would be the current date and time.