AIToday
Large Language ModelsAI Coding AssistantsZenn AI/MLPublished: Oct 7, 2026, 22:00 JST

Claude Code chat ends, Celery workers die silent

Claude Code chat ends, Celery workers die silent

3 Key Points

  1. What happened

    Guided by the developer, Claude Code launched ALPHA FORGE's Celery workers and beat at 17:44 on September 25; closing the chat killed them as child processes, and scheduled jobs stayed dead until morning.

  2. Why it matters

    The developer says AI-launched background jobs on Windows can die with the parent session unless started via WMI, so the fix went into CLAUDE.md as a permanent rule for future sessions.

  3. What to watch

    The developer notes this trap produced no error, so similar silent failures may recur in other setups; next he plans to cover a separate Windows spawn trap where training processes die as child processes.

WHO IT HITSIndividual developers and small teams who let an AI coding assistant launch background services on their own machines, and who may not notice that scheduled jobs simply never ran.

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 developer is building ALPHA FORGE, a Japanese-stock AI screening and continuous-learning tool, as a solo project alongside Claude Code. The article is a reconstruction of the 14th installment in his development-log series, and its three traps all share a feature: none of them produced an error.

The first trap was structural. Because the AI launched the worker processes as its own children, ending the chat session also ended the workers. The developer chose CLAUDE.md, the file the AI reads before each task, and wrote a WMI-based launch command so the parent would be the OS rather than the AI session.

The second trap was a stale, empty PID file dating from September 15. The script read its presence as proof the system was running and exited silently, while the auto-start task reported success. The fix, in code this time, was to check whether the recorded process was actually alive, and to return a real failure to the caller.

The third trap appeared on October 1, when the developer set up a cloud work environment. The API key the app uses to call an LLM and the key Claude Code uses for itself share the same standard environment variable name, so the developer feared the development tool's charges could land on the app's key. His answer was to store the app key under a different name and copy it only into the app's config file at launch.

The piece closes with a four-question framework for deciding where a lesson belongs: code and tests if a machine can enforce it, CLAUDE.md if the AI must know it before every task, skills for steps in a fixed procedure, and memory for the developer's own judgment habits, which he describes as something to maintain rather than grow. What the outcome hinges on, by his own account, is the human noticing at all — he caught the first failure the next morning and set the rule himself, while the AI traced the causes and proposed where to write each fix.

FAQ
Why did the background workers stop when the chat was closed?
The developer writes that processes launched by AI commands are born as child processes of the AI session. When the parent session ends, the children end with it, so both workers and beat shut down.
Where did the developer record the fix?
For the launch problem, he put the rule in CLAUDE.md, which the AI reads first each time, using a WMI-based launch command. For the API key name collision, he also added a cloud-start procedure and a rule not to print key values in chat or logs.
What was the second trap about auto-start?
A PID file left empty since September 15 made the launch script believe the system was already running, so it did nothing and reported success. The fix came on the morning of September 28, about two weeks later.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

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 articleChatGPT forges signatures of over 15 New Yorker cartoonists