SaltDns.Certificates.Worker (Salt v1.0.0)

The Oban job that works on one certificate (SaltDns.Certificates.Runner). Unique per certificate while it is waiting, scheduled, running or being retried, so any number of replicas, and a watcher that enqueues every minute, never run two orders for one certificate. It does its own failure accounting and always finishes normally; Oban's retries only cover a process that was killed.

Summary

Functions

Queues the job for a certificate (a no-op while one is already queued or running).

Functions

enqueue(certificate_id)

@spec enqueue(integer()) :: {:ok, Oban.Job.t()} | {:error, term()}

Queues the job for a certificate (a no-op while one is already queued or running).