Add retry logic for Porkbun API calls to improve reliability #3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now,
UpdateDnsCommandperforms single‑attempt calls to the Porkbun API, i.e.ping(),retrieve(),edit(). If any of these calls fail due to transient network issues, temporary Porkbun downtime, or slow responses, the entire command returns an error immediately.This works, but it makes the updater sensitive to short‑lived failures — especially when running under cron.
Proposed enhancement
Introduce a small retry mechanism around API calls, with a limited number of attempts and a short delay between them. This would make the updater more resilient without changing its external behavior.
Benefits