SaltDns.Registrar.Schedule (Salt v1.0.0)

Adds the registrar's cron jobs to the Oban configuration, and only while SALT_DNS_REGISTRAR=on: with the switch off the configuration comes back unchanged and nothing of the registrar is scheduled. The application calls this once when it starts Oban.

Summary

Functions

The Oban configuration with the registrar's jobs added when the module is on.

The cron entries: the sweep every 5 minutes, the refresh and the expiry reminders once a day.

Functions

apply(oban_config, enabled?)

@spec apply(keyword(), boolean()) :: keyword()

The Oban configuration with the registrar's jobs added when the module is on.

jobs()

@spec jobs() :: [{String.t(), module(), keyword()}]

The cron entries: the sweep every 5 minutes, the refresh and the expiry reminders once a day.