Skip to content

feat(ddns): add durable scheduling, retries, and recovery #232

Closed

Description

@RentnerKev

Summary

DDNS must keep working after restarts and temporary outages without overlapping updates or relying on an external cron/container. Add scheduling and recovery around the record synchronizer.

Scope

  • Provide an explicit enabled state, configurable interval with a five-minute option, update-on-start, and a manual update command.
  • Persist configuration and bounded last-run/per-target status, including the last successful addresses, next attempt, and actionable failure reasons.
  • Prevent overlapping manual, scheduled, and recovery runs. Bound network requests and retry rate-limited/transient failures with backoff.
  • Define disable, restart, shutdown, token-change, and restore behavior; a restored backup must not start DNS mutations until explicitly re-enabled.

Acceptance criteria

  • DDNS is disabled by default and starts only after explicit activation.
  • Five-minute periodic updates, update-on-start, and manual updates use the same synchronization path.
  • Manual and scheduled updates cannot race to write conflicting provider state.
  • Network/provider outages preserve last-known-good values and recover without a restart or an update storm.
  • Rate limits and Retry-After responses are respected; permanent configuration/permission errors are distinguishable from transient failures.
  • Disable cancels future work and has documented behavior for an in-flight request.
  • Restart retains state while backup restoration pauses external DNS writes until deliberate activation.
  • Status/events expose no tokens and provide a bounded event source for later notifications.

Verification

  • Use controllable time and provider fixtures for overlap, restart, disable, retry/backoff, rate limits, partial failures, and paused restore. Add a short recovery integration test; no automatic endurance run.

Dependencies and order

Implementation step: B2-03

Priority: P1 / reliable DDNS operation

Prerequisites: #231 (B2-02).

Roadmap: v1.0.0-beta.2. Follow the numbered milestone sequence for a straightforward step-by-step implementation.

Activity

  1. added this to the v1.0.0-beta.2 milestone on Oct 10, 2026
  2. added
    enhancement
    area: runtime
    on Oct 10, 2026
  3. RentnerKev commented on Oct 17, 2026

    @RentnerKev
    MemberAuthor

    Implemented and verified in merged PR #246. Tracking B2-03 as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: runtimeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions