Skip to content

fix(sources): start census parse workers as daemon threads again - #5718

Merged
Sinity merged 1 commit into
masterfrom
claude/parse-stage-daemon-workers
Sep 28, 2026
Merged

Sinity merged 1 commit into
masterfrom
claude/parse-stage-daemon-workers

Conversation

@Sinity

@Sinity Sinity commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Problem

#5680 deleted _ProcessBoundedThreadPoolExecutor._adjust_thread_count as unreachable. Nothing in the repository names it, but ThreadPoolExecutor.submit calls it: it was the hook that made census parse workers daemon threads. Without it a wedged parse worker is an ordinary non-daemon thread, so it can hold daemon process exit, and tests/unit/daemon/test_parse_prefetch.py::test_shutdown_is_process_bounded_with_wedged_parse_worker fails deterministically on master (assert all(thread.daemon for thread in stage._executor._threads)).

Change

Restore the override unchanged in behavior. Its docstring now says submit calls it, so the next dead-code sweep does not remove it again.

Verification

  • devtools verify --quick: PASSED.
  • devtools test tests/unit/daemon/test_parse_prefetch.py: PASSED (the wedged-worker test included).

🤖 Generated with Claude Code

https://claude.ai/code/session_01P8nGdByCWAzpk78ko2xza6

#5680 removed _ProcessBoundedThreadPoolExecutor._adjust_thread_count as
unreachable, but ThreadPoolExecutor.submit calls it: it is the hook that
made parse workers daemon threads. Without it a wedged parse worker is a
non-daemon thread that holds interpreter exit, and
test_shutdown_is_process_bounded_with_wedged_parse_worker fails on
master. Restore the override and say in its docstring who calls it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01P8nGdByCWAzpk78ko2xza6
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T08:21:53.154508Z 2b99f2e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Sinity
Sinity enabled auto-merge (squash) September 28, 2026 08:22
@Sinity
Sinity merged commit 1f83c26 into master Sep 28, 2026
3 checks passed
@Sinity
Sinity deleted the claude/parse-stage-daemon-workers branch September 28, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant