Scheduled job failure
Investigate missed, failing, or apparently successful jobs in the Platform Scheduler.
Trigger / Symptom & Blast Radius
A Quartz.NET job in 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 misses its UTC schedule, appears paused or failed in Quartz Dashboard (/quartz), or reports success while Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and
synchronizes semantic search vectors in Qdrant.
SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs makes no vector indexing progress. Blast radius is limited to scheduled background jobs (5-minute vector batching and 30-second heartbeat); transactional APIs and email notifications are unaffected.
Never edit Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs rows through 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, and never copy connection strings or credentials into incident notes.
Pre-Flight Check
Verify 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 container status, stream logs, and check pending vector queue depth in Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs:
az containerapp show --name <SERVICE_NAME> --resource-group <RESOURCE_GROUP> --query "properties.runningStatus" -o tsvSELECT COUNT(*) AS pending_count, MIN(updated_at) AS oldest_updated_at FROM pending_vector_updates;Quick Recovery Procedure
Verify Scheduler is running and inspect Quartz Dashboard
In local Aspire runs, 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 requires an explicit manual start in the Aspire Dashboard. In all environments, open
/quartz(requires Entra IDadminrole) and confirm triggers forProcessVectorBatchJob(every 5 minutes UTC) andHeartbeatJob(every 30 seconds UTC) are inNORMALstate rather thanPAUSED,ERROR, orBLOCKED.Check Scheduler database and Kafka outbox
If jobs fail with execution exceptions, inspect 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 logs for 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 or Kafka connectivity errors publishing 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:
Terminal window az containerapp logs show --name <SERVICE_NAME> --resource-group <RESOURCE_GROUP> --tail 100Verify downstream Catalog Ingestion if Scheduler succeeds
A successful job run confirms only that the Kafka trigger was published. Check consumer lag on 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 and inspect Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs logs for advisory lock contention, Microsoft Foundry embedding errors, or Catalog VectorContainerv1.0.0Catalog VectorNon-authoritative Qdrant vector search index owned by the Catalog bounded context for hybrid semantic and keyword book d...Ownercatalog-experience-teamDiagramOpen docs errors.
Restore dependencies and resume triggers
Restore 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, Kafka, or downstream Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs dependencies. Resume any paused trigger in
/quartzunder approved change procedures and allow the next 5-minute cycle (orFireOnceNowcatch-up) to drain the queue.
Verification
Confirm HeartbeatTrigger and ProcessVectorBatchTrigger show Succeeded runs in /quartz and pending_count in Catalog DatabaseContainerv1.0.0Catalog DatabaseAuthoritative PostgreSQL system of record owned by the Catalog bounded context for books, authors, categories, publisher...Ownercatalog-experience-teamDiagramOpen docs trends toward 0:
SELECT COUNT(*) AS pending_count FROM pending_vector_updates;Expected output:
pending_count--------------- 0Rollback / Escalation
- Rollback: Pause the affected trigger in
/quartzif a downstream dependency is overwhelmed, then resume once healthy. - Escalation: Escalate Scheduler, 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, or Kafka issues to Platform Engineering TeamTeamPlatform Engineering TeamPlatform team providing BookWorm's thinnest viable platform—orchestration, messaging fabric, scheduling, notifications, ...Open docs; escalate ingestion/embedding issues to Platform Engineering TeamTeamPlatform Engineering TeamPlatform team providing BookWorm's thinnest viable platform—orchestration, messaging fabric, scheduling, notifications, ...Open docs.
Related documentation
- Product IngestionFlowv1.0.0Product IngestionCatalog API persists product changes in PostgreSQL; Scheduler triggers Catalog Ingestion over Kafka every five minutes t...Ownercatalog-experience-teamView flowOpen docs — End-to-end scheduled vector ingestion flow.
- ADR-001: Persist Quartz scheduling state in PostgreSQLDecision Recordv1.0.0ADR-001: Persist Quartz scheduling state in PostgreSQLThe Scheduler System uses PostgreSQL as the authoritative durable store for Quartz schedules, trigger state, coordinatio...Ownerplatform-engineering-teamOpen docs — Quartz persistence 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.