PhoenixKitBookings.Workers.ReminderWorker (PhoenixKitBookings v0.1.1)

Copy Markdown View Source

Sends the reminder email at starts_at - reminder_minutes (scheduled at booking creation via scheduled_at: — the :default queue, which every Oban install runs). The job re-checks state at fire time: a cancelled booking or a service whose reminder was turned off sends nothing, so stale jobs are harmless and no cancellation bookkeeping is needed.

Summary

Functions

Schedules the reminder for a fresh booking. Best-effort: no reminder configured, a day-mode booking (no clock time to anchor), a reminder moment already in the past, or Oban not running (module test suite) all no-op.

Functions

schedule(booking, arg2)

Schedules the reminder for a fresh booking. Best-effort: no reminder configured, a day-mode booking (no clock time to anchor), a reminder moment already in the past, or Oban not running (module test suite) all no-op.