AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Sep 28, 2026, 22:00 JST

Claude Code tasks sit idle 3 days as prior runs stay stuck

Claude Code tasks sit idle 3 days as prior runs stay stuck

3 Key Points

  1. What happened

    Two Claude Code scheduled tasks on 9:10 and 10:01 morning runs produced no start rows, no errors and no notifications from 2026-09-25 through 09-27; both June 24 runs had been stuck "running" for 46 hours.

  2. Why it matters

    The tasks weren't broken — they couldn't start, because a previous run stuck in "in progress" blocks the next launch and never registers as a failure, so monitoring that counts errors sees zero.

  3. What to watch

    The fix hinges on checking execution history for a prior run still marked "running" and having the task itself log start and finish rows — without that, a silent no-show day is indistinguishable from a day that ran and did nothing.

WHO IT HITSThis lands on anyone running scheduled jobs on their own machine — developers using Claude Code or cron, and operations staff who rely on job-completion alerts — because a hung prior run hides as "still in progress" rather than surfacing as an error.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The trigger for the discovery was a habit, not an alert: the tasks write a row to a database at start and another at finish, so on 09-27 the user could see that the start rows for 25, 26 and 27 were missing entirely. That distinction mattered. A missing finish row would have meant a run that stopped midway; a missing start row meant the run never began at all. Without those two rows, a day that ran and did nothing would look identical to a day that never ran.

The user first suspected the Mac had been asleep, since scheduled tasks run locally. Two checks ruled it out: uptime showed the machine had been up four days, and a log file timestamped 09:56 on 2026-09-25 showed activity around the 9:10 and 10:01 scheduled times. The real cause was in the execution history — both tasks had started, stalled seconds later, and sat marked "running" for 46 hours, with no new runs created and the run counter frozen since the 24th.

The shape of this failure is familiar outside Claude Code, in batch jobs that exit abnormally without clearing a lock file, queue workers blocked by a leftover job, or connection pools holding a connection that no longer answers. What ties them together is that no failure notice goes out, because the stuck run is "still in progress" rather than failed. The takeaway the user drew is that detection has to be written by the side that did run — the side that didn't will never report itself — and that the start and finish rows logged from the beginning are what made the diagnosis possible at all.

FAQ
Why didn't the Claude Code tasks show any error?
The previous run was treated as "still running" rather than "failed," so it never counted as an error. Monitoring that only watches the failure count stayed at zero for days.
How was the problem fixed?
Stopping the stuck runs changed both to "success," and the tasks ran normally the next morning. A step was also added to check execution history for a prior run still stuck "running" and to report it.
Was the Mac asleep?
No. Uptime showed no reboot, and a log file at 09:56 on 2026-09-25 proved the Mac was awake around the 9:10 and 10:01 scheduled times.

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Autoheal raises $7.9 million for self-fixing AI agentsSiliconANGLE AI · 42m ago
  • Paul Cheek: 30% of S&P 500 execs AI-literate, 78% gapFortune AI · 43m ago
  • Claude Fable 5.1 builds matrix-free Transformer site, then a 10M Japanese SLMZenn AI/ML · 43m ago

AI-summarized, only the topics you pick: one digest a day via Email, LINE, or Slack.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleOpenAI Knew Pirated Books Risked Authors' Livelihoods