Repository navigation
Escapement v0.8.0
Escapement - "The Stopped Clock" release
Only a fix this time, but a big one. If Escapement has ever gone quiet on you,
this was almost certainly why.
It turns out that Escapement could stop scheduling backups without ever telling
you! The menu bar icon stayed put, the menu still opened, the window still drew
— but the "Last backup" line never moved again, and nothing ran until you
restarted the app. It sat like that on my own Mac for four days before I caught
it. Oof!
The root cause was a call to tmutil that never came back. Escapement asks
Time Machine for its status on every tick to decide what to do next, and when
one of those calls hung — a network destination disappearing mid-backup will do
it — the timeout meant to rescue it was stuck waiting behind the very thing
it was supposed to interrupt! And it gets worse... each new tick added another
stuck call until there was nothing left to run the schedule with. The app
stayed alive and responsive, but the part that actually starts backups was long
gone.
Yeah...
With this fix, every call to Time Machine is now properly bounded. It'll give
up on its own; won't drag the scheduler down with it; and a slow answer no
longer multiplies into a pile. And while we're at it, a backup request that
times out is no longer recorded as a failure, since Time Machine may have
started it regardless and thus Escapement now waits to find out for real
instead of just guessing.