Quartz scheduler schema reference
PostgreSQL schema, keys, retention limits, and BookWorm job configuration for all 15 Quartz.NET 4.8.1 tables in schedulerdb.
Scheduler ServiceServicev1.0.0Scheduler ServiceSingle-host Quartz.NET job execution engine and operational dashboard UI
for scheduling recurring platform jobs and insp...PublishesProcessVectorBatchIntegrationEventAPIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs persists durable job definitions, cron triggers, cluster locks, and execution history across 15 PostgreSQL tables in Scheduler DatabaseContainerv1.0.0Scheduler DatabaseAuthoritative PostgreSQL database owned by the Platform bounded context for Quartz.NET job definitions, cluster locks, e...Ownerplatform-engineering-teamDiagramOpen docs using Quartz.NET 4.8.1. This reference documents the active job schedule, table keys, and retention defaults for platform operators.
Scheduler Persistence Model
Loading graph...
Component & Responsibility
| Component | Role | Protocol / Interface | Persistence / State | Notes |
|---|---|---|---|---|
| Scheduler ServiceServicev1.0.0Scheduler ServiceSingle-host Quartz.NET job execution engine and operational dashboard UI for scheduling recurring platform jobs and insp...PublishesProcessVectorBatchIntegrationEventAPIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs | Executes durable cron jobs & syncs schedule definitions | Quartz.NET 4.8.1 + Kafka | Scheduler DatabaseContainerv1.0.0Scheduler DatabaseAuthoritative PostgreSQL database owned by the Platform bounded context for Quartz.NET job definitions, cluster locks, e...Ownerplatform-engineering-teamDiagramOpen docs (PostgreSQL) | Processor-count concurrency; drains active jobs on shutdown |
| Quartz Dashboard | Operational UI for inspecting jobs & triggering manual runs | External HTTPS (/quartz) | Reads Scheduler DatabaseContainerv1.0.0Scheduler DatabaseAuthoritative PostgreSQL database owned by the Platform bounded context for Quartz.NET job definitions, cluster locks, e...Ownerplatform-engineering-teamDiagramOpen docs via Scheduler ServiceServicev1.0.0Scheduler ServiceSingle-host Quartz.NET job execution engine and operational dashboard UI for scheduling recurring platform jobs and insp...PublishesProcessVectorBatchIntegrationEventAPIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs | Protected by OAuth APIServicev1.0.0OAuth APIExternal OAuth 2.0 and OIDC identity provider API used by BookWorm clients
and services to authenticate users, issue tok...Ownerplatform-engineering-teamDiagramOpen docs OIDC (admin role) |
| Core Job & Trigger Tables | Stores job definitions, triggers, and cron expressions | PostgreSQL (qrtz_job_details, qrtz_triggers, qrtz_cron_triggers) | Relational (FK cascade) | Synced every 1 minute from schedule config |
| Cluster & Lock Tables | Coordinates active firings, heartbeats, and row locks | PostgreSQL (qrtz_fired_triggers, qrtz_scheduler_state, qrtz_locks) | Ephemeral / cluster state | Scoped by sched_name |
| Execution & Misfire History | Tracks job outcomes, retries, logs, and misfires | PostgreSQL (qrtz_execution_history, qrtz_misfire_history, qrtz_job_status) | 30-day retention, max 100,000 entries | Rolling summary in qrtz_job_status |
Configuration & Operational Defaults
Active Scheduled Jobs
| Job name | Trigger name | Group | Cron expression (UTC) | Misfire policy | Durable / Recover | Concurrency |
|---|---|---|---|---|---|---|
ProcessVectorBatchJob | ProcessVectorBatchTrigger | Scheduler | 0 0/5 * * * ? (every 5m) | Fire once now | true / false | Non-concurrent |
HeartbeatJob | HeartbeatTrigger | Scheduler | 0/30 * * * * ? (every 30s) | Fire once now | true / false | Concurrent allowed |
ProcessVectorBatchJob publishes Process vector batchEventv1.0.0Process vector batchIntegration event published by Scheduler every five minutes to trigger
Catalog Ingestion vector batch processing over Ka...Ownerplatform-engineering-teamSchemaDiagramOpen docs to Process Vector Batch ChannelChannelv1.0.0Process Vector Batch ChannelUnprefixed Kafka trigger topic owned by the platform team used by Scheduler
Service every five minutes to initiate Catal...Ownerai-capabilities-teamOpen docs via Wolverine’s PostgreSQL outbox in Scheduler DatabaseContainerv1.0.0Scheduler DatabaseAuthoritative PostgreSQL database owned by the Platform bounded context for Quartz.NET job definitions, cluster locks, e...Ownerplatform-engineering-teamDiagramOpen docs. Schedule configuration is scanned every 1 minute, overwriting existing definitions and failing fast on missing or invalid schedules.
Core Tables
qrtz_job_details
Primary key: (sched_name, job_name, job_group).
| Column | Type | Required | Description |
|---|---|---|---|
sched_name | text | Yes | Logical Quartz scheduler name |
job_name | text | Yes | Unique job name within job_group |
job_group | text | Yes | Logical job group (Scheduler in BookWorm) |
description | text | No | Human-readable operator description |
job_class_name | text | Yes | Fully qualified job type name |
is_durable | boolean | Yes | Keeps the job stored when no triggers reference it |
is_nonconcurrent | boolean | Yes | Prevents overlapping runs |
is_update_data | boolean | Yes | Persists modified JobDataMap entries after execution |
requests_recovery | boolean | Yes | Re-executes the job if a node crashes mid-run |
job_data | bytea | No | Serialized binary JobDataMap payload |
qrtz_triggers
Primary key: (sched_name, trigger_name, trigger_group). Foreign key: (sched_name, job_name, job_group) -> qrtz_job_details.
| Column | Type | Required | Description |
|---|---|---|---|
sched_name, trigger_name, trigger_group | text | Yes | Composite primary key |
job_name, job_group | text | Yes | Target job in qrtz_job_details |
description | text | No | Human-readable trigger description |
next_fire_time, prev_fire_time | bigint | No | Next and most recent fire timestamps (UTC ticks) |
priority | integer | No | Firing priority when triggers share a fire time |
trigger_state | text | Yes | WAITING, ACQUIRED, PAUSED, BLOCKED, or ERROR |
trigger_type | text | Yes | CRON, SIMPLE, SIMPROP, or BLOB |
start_time, end_time | bigint | Yes / No | Active window timestamps (UTC ticks) |
calendar_name | text | No | Optional exclusion calendar in qrtz_calendars |
misfire_instr, misfire_orig_fire_time, misfire_threshold | smallint / bigint | No | Misfire handling code, original fire time, and threshold |
execution_group, preferred_node, preferred_node_auto | varchar(200) / boolean | No / Yes | Execution grouping and cluster node affinity |
retry_policy, retry_attempt | varchar(250) / integer | No | Retry policy descriptor and current attempt count |
continues_trigger_name, continues_trigger_group, continuation_condition | text / integer | No | Follow-on continuation trigger metadata |
overlap_policy, fixed_delay | integer / boolean | No | Overlap policy and fixed-delay scheduling flag |
pause_reason, paused_by, paused_at | varchar / bigint | No | Pause audit metadata |
job_data | bytea | No | Serialized trigger-scoped JobDataMap payload |
qrtz_cron_triggers
Primary / foreign key: (sched_name, trigger_name, trigger_group) -> qrtz_triggers.
| Column | Type | Required | Description |
|---|---|---|---|
sched_name, trigger_name, trigger_group | text | Yes | Composite primary/foreign key |
cron_expression | text | Yes | Quartz cron expression (e.g., 0 0/5 * * * ?) |
time_zone_id | text | No | Time zone ID (UTC in BookWorm) |
Because BookWorm defines cron triggers only, qrtz_simple_triggers, qrtz_simprop_triggers, qrtz_blob_triggers, and qrtz_calendars remain empty unless ad-hoc triggers or calendars are added at runtime.
| Table | Primary Key | Purpose |
|---|---|---|
qrtz_simple_triggers | (sched_name, trigger_name, trigger_group) | Fixed-interval repeat schedules (repeat_count, repeat_interval, times_triggered) |
qrtz_simprop_triggers | (sched_name, trigger_name, trigger_group) | Calendar-interval and daily-time-interval property slots (str_prop_*, int_prop_*, long_prop_*, dec_prop_*, bool_prop_*, time_zone_id) |
qrtz_blob_triggers | (sched_name, trigger_name, trigger_group) | Binary-serialized custom triggers (blob_data) |
qrtz_calendars | (sched_name, calendar_name) | Serialized exclusion/inclusion calendar definitions |
qrtz_paused_trigger_grps | (sched_name, trigger_group) | Cluster-wide paused trigger groups with pause_reason, paused_by, paused_at |
qrtz_paused_job_grps | (sched_name, job_group) | Cluster-wide paused job groups with pause_reason, paused_by, paused_at |
| Table | Primary Key | Key Columns |
|---|---|---|
qrtz_fired_triggers | (sched_name, entry_id) | trigger_name, trigger_group, instance_name, fired_time, sched_time, priority, state (ACQUIRED, EXECUTING, BLOCKED), job_name, job_group, is_nonconcurrent, requests_recovery, progress, progress_message, interrupt_requested_time |
qrtz_scheduler_state | (sched_name, instance_name) | last_checkin_time, checkin_interval, quartz_version (4.8.1) |
qrtz_locks | (sched_name, lock_name) | Row-level coordination locks (TRIGGER_ACCESS, STATE_ACCESS) |
| Table | Primary Key | Key Columns |
|---|---|---|
qrtz_execution_history | (sched_name, entry_id) | instance_name, job_name, job_group, trigger_name, trigger_group, fired_time, run_time, succeeded, error_message, retry_attempt, retry_scheduled, execution_log, result, summary, metrics, manual, fire_instance_id, job_input, job_input_too_large |
qrtz_misfire_history | (sched_name, entry_id) | instance_name, trigger_name, trigger_group, job_name, job_group, misfire_time, sched_time, reason |
qrtz_job_status | (sched_name, job_group, job_name) | first_fired_time, last_fired_time, last_result, last_run_time, last_instance_name, last_entry_id, last_summary, last_success_time, last_failure_time, last_failure_message, consecutive_failures, run_count |
Inspect Recent Job Health
SELECT job_group, job_name, run_count, consecutive_failures, last_failure_messageFROM qrtz_job_statusORDER BY job_group, job_name;Guardrails & Constraints
Never modify qrtz_* rows directly in PostgreSQL. Manage schedules through declarative
configuration or the Quartz Dashboard so Quartz validates cron expressions, updates binary
payloads safely, and preserves cluster lock invariants.
All BIGINT timestamp columns store 100-nanosecond UTC ticks from year 0001, not Unix epoch
milliseconds.
Related Documentation
- Stateful Data, AI & Messaging InfrastructureCustom DocStateful Data, AI & Messaging InfrastructureTechnical reference for Azure-managed databases, caches, storage, Durable Task Scheduler, Microsoft Foundry, and externa...Ownerplatform-engineering-teamOpen doc — Platform storage inventory including Scheduler DatabaseContainerv1.0.0Scheduler DatabaseAuthoritative PostgreSQL database owned by the Platform bounded context for Quartz.NET job definitions, cluster locks, e...Ownerplatform-engineering-teamDiagramOpen docs.
- Container Apps & Compute InventoryCustom DocContainer Apps & Compute InventoryReference inventory of all 16 Azure Container Apps, ingress ports, revision modes, and platform-owned runtime services.Ownerplatform-engineering-teamOpen doc — Hosting details for Scheduler ServiceServicev1.0.0Scheduler ServiceSingle-host Quartz.NET job execution engine and operational dashboard UI for scheduling recurring platform jobs and insp...PublishesProcessVectorBatchIntegrationEventAPIsAsyncAPIOwnerplatform-engineering-teamDiagramRepositoryOpen docs and Quartz Dashboard.