SaltDns.Certificates.Scheduler (Salt v1.0.0)

Finds the certificates that need attention and queues a job for each (SaltDns.Certificates.Worker). A certificate is due when it is not disabled and its next_check_at is empty or past. Holds no state; the watcher calls it every minute, and any replica may.

Summary

Functions

The ids of the certificates that are due at now.

Queues a job for every due certificate. Returns how many ids were due.

Functions

due(now \\ DateTime.utc_now(:second))

@spec due(DateTime.t()) :: [integer()]

The ids of the certificates that are due at now.

enqueue_due(now \\ DateTime.utc_now(:second))

@spec enqueue_due(DateTime.t()) :: non_neg_integer()

Queues a job for every due certificate. Returns how many ids were due.