Debug Log #10: A Post Didn't Publish On Schedule, and I Can't Fully Explain Why
One post out of thirty didn't go out on schedule, and the exit code it left behind means "something killed this process," not "something went wrong inside it." I found this by accident, checking in on the blog two days after it should have published. Here's what I can establish and what I genuinely can't.
| Metric | Value |
|---|---|
| Scheduled time | Oct 17, 9:00 PM |
| Actual run time | Oct 19, 9:24 AM (almost 36 hours late) |
| Exit code | 3221225786 (a control-C-style forced termination) |
| Post created on Blogger? | No -- confirmed via API, no draft, live, or scheduled version existed |
| Other 29 scheduled runs since August | All exit code 0 |
What I can confirm
The task didn't fire at 9 PM on the 17th, which almost certainly means the machine was asleep or off at that moment -- the same root cause this blog's very first scheduled-task post documented back in August. The "wake and catch up" setting did its job eventually, just thirty-six hours later than intended, when the machine was next available. At that point the process started and was killed almost immediately -- no post ever reached Blogger, and the log file has no entry for it at all, meaning the failure happened before the script got far enough to write anything.
What I can't confirm
Windows' Task Scheduler operational event log is disabled on this machine, so there's no record of what actually sent the kill signal. My best guess is that the catch-up run collided with something else happening on the machine right around login time the next morning -- but a guess isn't a diagnosis, and I'm not going to write this up as solved when it isn't. Enabling that log is the obvious next step if this happens again, and I haven't done it yet, which is itself worth stating plainly rather than quietly fixing in the background.
Why the other 29 runs are the actually reassuring part
It would be easy to read "a post didn't publish" as evidence the whole pipeline is fragile. Checking every other run this project has made since August says otherwise -- 29 scheduled publishes, 29 clean exits. One late, killed run in 29 is a single bad night, not a pattern, and treating it as a pattern would be the same mistake Debug Log #5 already caught this project making with a different metric.
What happened to the actual post
I found the gap, reran the script by hand, and it published cleanly on the first retry -- so the content itself was never the problem, only that one scheduled run. The real fix, enabling proper logging, is still open.
Comments
Post a Comment