Članci s tagom #cron
-
Cron heartbeat monitoring: detecting silent job failures with z-score output analysis
Sonar cron heartbeat: push-first (job pings /sonar/ping/<token>), CronScheduleEvaluator 5-field parser (*, digit, range, step, comma) forward-iterates minute-by-minute to nextExpectedAfter(), isOverdue = now > nextExpected + graceSeconds. missed_ping = WARNING. OutputDiffer: BASELINE_SAMPLE=20, MIN_BASELINE=5, ZSCORE_THRESHOLD=3.0/5.0 (warning/critical), MEDIAN_DROP_FACTOR=0.50/0.01. output_anomaly = WARNING or CRITICAL. Zero content storage — derived metrics only.
-
Cron monitoring 101: catching silent failures
Your cron exits 0 every night. But last Tuesday it silently skipped 9 of 10 databases. Here's how to catch that — without writing your own watchdog.
-
Building an infrastructure monitoring SaaS in PHP: 5 monitor types on one stack
Sonar: 5 monitor types (cron heartbeat + output diff, SSL cert expiry, HTTP uptime/body/schema-drift, domain WHOIS expiry, renewal reminder), Telegram-first with inline ack/snooze, incident digest (template, no AI), 4 tiers (free/Solo $9.99/Pro $29/Agency $79), RunMonitorChecksJob every-minute tick with per-tick budget 50 monitors oldest-checked-first, sonar_tenant_settings 1-to-1 per tenant.
-
PHP cron scheduler: self-hosted, zero dependencies, per-minute resolution
Shinobi Apps framework Scheduler: queue_scheduled_tasks table, registerIfNeeded (file cache → DB upsert, hash of jobClass+expression+jobData), ONCE marker for one-time tasks, runDue optimistic atomic claim (UPDATE WHERE old next_run_at → affected_rows=1 wins, prevents duplicate dispatch), INSERT ON DUPLICATE KEY UPDATE with is_active omitted (preserves user toggle). Scheduler::ONCE for delayed post-deploy tasks. Expression: cron 5-field or dailyAt HH:MM.