Tasks: a renewal created over the API replaces the domain's queued one #308

Merged
jcoffey-dev merged 1 commits from fix/task-renewal-replaces-queued into main 2026-11-07 01:17:37 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev 23d746e396 Tasks: a renewal created over the API replaces the domain's queued one
ci / fork-checks (pull_request) Skipped
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 15m7s
Saving a domain already clears its queued certificate renewals before
queuing a new one (#290), because each renewal queues the next and two
would keep renewing for good. Creating an AcmeRenewal task, or a DNS task
that renews the certificate after, through x:Task/set skipped that, so a
client could start a second chain. It now clears them the same way, and
refuses a second renewal for the same domain in one request.

The test also covers telling a queued renewal to run now by setting its
status to Pending, which the console's Order again uses (inbuxa-admin#167).
2026-11-06 17:54:00 -07:00