commanded-scheduler
commanded-scheduler copied to clipboard
Schedule one-off and recurring commands for Commanded CQRS/ES applications
Upgrading to v1.0 breaks commanded_scheduler with the following error: ``` == Compilation error in file lib/commanded/scheduler/scheduling/scheduling.ex == ** (ArgumentError) Commanded.Scheduler.Scheduling expects :application option lib/commanded/event/handler.ex:332: Commanded.Event.Handler.compile_config/2 lib/commanded/scheduler/scheduling/scheduling.ex:4: (module) (stdlib) erl_eval.erl:680: :erl_eval.do_apply/6...
It is currently not possible to schedule a command using `schedule_uuid` that was previously cancelled: ```elixir iex> Scheduler.schedule_once(seat_id, %TimeoutSeatReservation{...}, ~N[2020-01-01 12:00:00]) :ok iex> Scheduler.cancel_schedule(seat_id) :ok iex> Scheduler.schedule_once(seat_id, %TimeoutSeatReservation{...}, ~N[2020-01-01 14:00:00])...
[SchedEx](https://github.com/SchedEx/SchedEx) provides an API for scheduling recurring and one-off jobs where each job is its own `GenServer` process and execution is implemented using `Process.send_after/4`. This would allow implementation of Recurring...
Schedule aggregate should specify a [life span](https://github.com/commanded/commanded/blob/master/guides/Commands.md#aggregate-lifespan) allowing instances to be shutdown after an inactivity period.
Schedule a command to be executed on a recurring interval, using a cron-like format. The API to schedule the recurring command is done, but execution is still pending.