Skip to content

fix(crawler): enforce bounded runs - #23

Open
hongzexin wants to merge 3 commits into
mainfrom
codex/crawler-run-timeout
Open

fix(crawler): enforce bounded runs#23
hongzexin wants to merge 3 commits into
mainfrom
codex/crawler-run-timeout

Conversation

@hongzexin

Copy link
Copy Markdown
Contributor

Summary

  • Add a configurable 50-minute overall crawler deadline.
  • Add 20-second timeouts to content-service requests.
  • Cover the timeout helper with Node tests.

Root cause

The crawler had per-page Playwright timeouts but no deadline around the complete run or content-service fetches, so one unresolved promise could keep a CronJob alive indefinitely.

Validation

  • Node tests: 2 passed.
  • Node syntax checks passed.
  • Git whitespace validation passed.

Cap complete crawler runs and internal API requests so anti-bot pages or stalled services cannot keep CronJobs alive indefinitely.
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