Skip to content

Scheduled backup does not fire on wake from sleep when interval has elapsed #110

@PLK2

Description

@PLK2

Describe the bug

When the laptop lid is closed and the system sleeps, the scheduled backup (understandably) does not run. However, when the lid is reopened and the system wakes, no backup fires even if the configured interval has already passed. The next backup only runs after another full interval elapses from the wake time.

Expected behavior

On wake from sleep, if the time since the last successful backup exceeds the configured interval, a backup should trigger promptly (possibly with a brief delay to allow network reconnection).

Actual behavior

No backup fires on wake. The daemon appears to restart the full interval timer from the moment of wake rather than checking whether the interval has already been exceeded.

Config (relevant yaml section)

schedule:
  enabled: true
  every: "2h"
  on_startup: true

Environment

OS: macOS Tahoe 26.3.1
Vykar version: 0.12.13

Possible fix

???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions