8000 Check in with Sentry Crons from dump_index by daoudclarke · Pull Request #577 · mwmbl/mwmbl · GitHub
[go: up one dir, main page]

Skip to content

Check in with Sentry Crons from dump_index - #577

Merged
daoudclarke merged 1 commit into
mainfrom
claude/funny-brahmagupta-fnvg99
Oct 31, 2026
Merged

daoudclarke merged 1 commit into
mainfrom
claude/funny-brahmagupta-fnvg99

Conversation

@daoudclarke
Copy link
Copy Markdown
Contributor

What changed

  • dump_index wraps the dump in sentry_sdk.crons.monitor, using a dump-index monitor. Sentry creates the monitor from the config on the first check-in.
    • Schedule 17 3 1 * * UTC, the same as the cron entry in app.json.
    • 60-minute check-in margin and 24-hour max runtime.
  • docs/index-dumps.md describes the monitor and says to keep the two schedules in step.

Why

Sentry already reports an exception that dump_index raises, through the SDK's default excepthook integration. It can't report:

  • a dump that was killed part-way (OOM or a container restart), which never raises
  • a cron that never ran

Sentry Crons alerts on both: as a timeout, or as a missed check-in. This replaces the failure tracking that #538 would have added.

How it was verified

  • make check passes.
  • test/test_index_dump.py passes, 16 tests, 3 of them new:
    • A successful dump checks in as in_progress and then ok.
    • A failed dump checks in as error, and the exception still propagates.
    • The monitor's schedule matches app.json.
  • Separately confirmed that with sentry-sdk 2.58 an uncaught exception at the top level is sent as an event.

Generated by Claude Code

Sentry already reports an exception the dump raises, through its default excepthook
integration. It can't report a dump that was killed part-way or a cron that never ran.
Check-ins on a `dump-index` monitor catch both, and a test keeps the monitor's schedule
in step with app.json.

No functional changes to the crawler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DTbu4oXHXewFWgSazZ9V88
@codecov
codecov Bot commented Oct 31, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@daoudclarke
daoudclarke merged commit d869588 into main Oct 31, 2026
7 checks passed
@daoudclarke
daoudclarke deleted the claude/funny-brahmagupta-fnvg99 branch October 31, 2026 14:03
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.

2 participants

0