Skip to content

feat(node): Send the graphile-worker crontab schedule as monitor config - #25476

Draft
wedamija wants to merge 7 commits into
danf/graphile-worker-cronsfrom
danf/graphile-worker-crons-config
Draft

wedamija wants to merge 7 commits into
danf/graphile-worker-cronsfrom
danf/graphile-worker-crons-config

Conversation

@wedamija

@wedamija wedamija commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Part of a series adding automatic Crons monitoring for the most-used job schedulers in each SDK. Check-ins for a monitor that doesn't exist yet are dropped, so today each monitor has to be created by hand with its schedule copied from the code. Sending the job's schedule as the monitor config lets Sentry create the monitor and keep it in sync.

graphileWorkerIntegration now sends the crontab schedule with each in_progress check-in, in UTC like graphile-worker, so Sentry creates the monitor on the first run. The crontab is rebuilt from the values graphile-worker parsed so both read the day fields the same way: 0 0 */2 * 1 is sent as 0 0 1,3,5,…,31 * 1.

Sentry.init({
  integrations: [Sentry.graphileWorkerIntegration({ monitorCronJobs: true })],
});

Items with a custom match function aren't monitored.

Stacked on #25475.

Rebuild the crontab from the parsed item, so Sentry reads the day fields
the way graphile-worker does, and send it in UTC.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 660418e (PR test merge using danf/graphile-worker-crons at 8269792)

Against: 9ea3abf (danf/graphile-worker-crons) · base run #64503

⚠️ Baseline mismatch: 5 danf/graphile-worker-crons commit(s) in the PR build are missing from the baseline. Their size changes also affect this comparison. Compare commits. Re-run once danf/graphile-worker-crons's baseline build for 8269792 finishes.

Path Size % Change Change
@sentry/browser 30.39 kB - -
@sentry/browser - with treeshaking flags 28.54 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.42 kB - -
@sentry/browser (incl. Tracing) 52.71 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.72 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.69 kB - -
@sentry/browser (incl. Tracing, Replay) 93.01 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.61 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.76 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.75 kB - -
@sentry/browser (incl. Feedback) 47.98 kB - -
@sentry/browser (incl. sendFeedback) 35.5 kB - -
@sentry/browser (incl. FeedbackAsync) 40.6 kB - -
@sentry/browser (incl. Metrics) 31.43 kB - -
@sentry/browser (incl. Logs) 31.72 kB - -
@sentry/browser (incl. Metrics & Logs) 32.44 kB - -
@sentry/react 32.28 kB - -
@sentry/react (incl. Tracing) 55.08 kB - -
@sentry/vue 38.66 kB - -
@sentry/vue (incl. Tracing) 55.73 kB - -
@sentry/svelte 30.42 kB - -
@sentry/remix (Remix 3 client bundle) 57.79 kB - -
CDN Bundle 32.18 kB - -
CDN Bundle (incl. Tracing) 53.23 kB - -
CDN Bundle (incl. Logs, Metrics) 34.46 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.17 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 75.87 kB - -
CDN Bundle (incl. Tracing, Replay) 91.45 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.38 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.55 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.55 kB - -
CDN Bundle - uncompressed 94.64 kB - -
CDN Bundle (incl. Tracing) - uncompressed 157.6 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 101.11 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.34 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 232.68 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 279.29 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 285.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 293 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 298.71 kB - -
@sentry/nextjs (client) 58.03 kB - -
@sentry/sveltekit (client) 53.23 kB - -
@sentry/core/server 44.24 kB - -
@sentry/core/browser 13.93 kB - -
@sentry/node 155.57 kB +0.06% +92 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.2 kB +0.06% +44 B 🔺
@sentry/node - without tracing 96.84 kB +0.07% +67 B 🔺
@sentry/node - without channel injection 135.94 kB +0.07% +93 B 🔺
@sentry/aws-serverless 105.04 kB +0.07% +69 B 🔺
@sentry/cloudflare (withSentry) - minified 197.94 kB - -
@sentry/cloudflare (withSentry) 491.97 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 218.48 kB - -

View base workflow run

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 11 not successful, 41 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Failing after 3m Details
❌ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Failing after 3m Details
❌ CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) Failing after 4m Details
❌ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Failing after 3m Details
❌ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Failing after 3m Details
❌ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Failing after 3m Details
❌ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Failing after 5m Details
❌ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Failing after 3m Details
❌ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Failing after 6m Details
❌ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Failing after 3m Details
❌ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Failing after 3m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 6m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) Successful in 8m Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 57s Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 7m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 8m Details
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 5m Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 6m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 6m Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) Successful in 6m Details
✅ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Successful in 5m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 7m Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 7m Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 6m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 6m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 6m Details
✅ CI: Optional E2E Tests / E2E node-eve Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 23s Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 21s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 6m Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 17s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 23s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 17s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 57s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 3m Details

@linear-code

linear-code Bot commented Oct 25, 2026

Copy link
Copy Markdown

JS-4002

…ng all jobs

graphileWorkerIntegration only monitors crontab items whose schedule
Sentry can represent, so items with a custom match function are skipped.

This branch has not been deployed

No deployments
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