Repository navigation
fix(crawler): prevent concurrent crawl resumes - #1119
WilliamK112 wants to merge 1 commit into
Conversation
|
Thanks @WilliamK112, nice fix: claiming before the resume decision is the right spot, and reusing the #946 compare-and-set keeps it tight.
Optional: a controller-level test that |
a913d33 to
62b18e2
Compare
|
Addressed at current head 62b18e2: the child-process race test now has a 20-second test timeout, 15-second child deadlines, inherited stderr, in-try spawning, and guaranteed termination cleanup. Audit/crawl docs define the five-minute stale window, the same-host live-PID exception, Ctrl-C release, waiting, and |
Signed-off-by: Ching-Wei Kang <[email protected]>
62b18e2 to
b406ab0
Compare
|
Merged: landed in the v0.0.134 batch (#1149), main commits 1966e24. Thank you @WilliamK112, claiming before the resume decision with a compare-and-set, then closing the suspended-owner gap and hardening the child-process test, made this safe to ship. (Nik) |
Summary
audit --resumeorcrawl --resumecontinues an interrupted crawlCloses #1026
Verification
bun test packages/crawler/tests/crawl-lease.test.ts apps/cli/tests/audit/crawl-lease-claim.test.ts(18 passed)bun run --cwd packages/crawler typecheckbun run --cwd apps/cli typecheckbun run --cwd apps/cli lintbun test apps/cli/tests/controllers/crawl.test.ts apps/cli/tests/audit/stop-interrupted-crawl.test.ts(11 passed, 1 skipped network integration test)bun run docs:check(61 passed)Checklist
Signed-off-byline.Docs:
docs/cli/audit.mdxanddocs/cli/crawl.mdxupdated. Skill: none.