Packages

Schedule one-off commands for Commanded CQRS/ES applications.

Current section

Files

Jump to
commanded_scheduler lib commanded scheduler schedule schedule_once.ex
Raw

lib/commanded/scheduler/schedule/schedule_once.ex

defmodule Commanded.Scheduler.ScheduleOnce do
@moduledoc """
Schedule a one-off command due at the given date/time (in UTC).
"""
@type t :: %__MODULE__{
schedule_uuid: String.t(),
name: String.t(),
command: struct(),
due_at: DateTime.t() | NaiveDateTime.t()
}
defstruct [
:schedule_uuid,
:name,
:command,
:due_at
]
end