monitoring-background-jobs
Installation
SKILL.md
Monitoring Background Jobs
Monitors background job health by identifying failed, paused, and long-running jobs that are distinct from user queries. Uses SQL-only interfaces (SHOW JOBS and SHOW AUTOMATIC JOBS) to surface schema changes, backups/restores, automatic statistics collection, and SQL stats compaction without requiring DB Console access.
Prerequisites
- SQL connection with
VIEWJOBsystem privilege (read-only) orCONTROLJOBrole option (control) - Background jobs are excluded from
SHOW CLUSTER STATEMENTSand from statement statistics surfaced in the DB Console SQL Activity page
Related skills: triaging-live-sql-activity for live queries, profiling-statement-fingerprints for historical query analysis.
Key Interfaces
SHOW JOBS: User-initiated + automatic jobs (last 12h default; retention configurable via thejobs.retention_timecluster setting, default 14 days)SHOW AUTOMATIC JOBS: Automatic jobs only (AUTO CREATE STATS, SCHEMA CHANGE GC, etc.)
See job types reference and job states reference for complete catalogs.