---
id: scheduler-system
name: Scheduler System
version: 1.0.0
summary: |
  Internal Quartz-based platform system that persists schedules, coordinates
  recurring jobs, and dispatches background work without owning domain data.
scope: internal
owners:
  - platform-engineering-team
services:
  - id: scheduler-service
    version: 1.0.0
flows:
  - id: product-ingestion
    version: 1.0.0
containers:
  - id: scheduler-database
    version: 1.0.0
relationships:
  - id: product-catalog-system
    version: 1.0.0
    label: triggers catalog ingestion work
  - id: notification-system
    version: 1.0.0
    label: triggers notification maintenance jobs
  - id: identity-provider
    version: 1.0.0
    label: authenticates administrative dashboard access
actors:
  - id: administrator
    name: Administrator
    label: manages schedules and investigates executions
    direction: inbound
badges:
  - content: Internal
    backgroundColor: gray
    textColor: gray
    icon: LockClosedIcon
---

## System Purpose & Boundary

The Scheduler System coordinates recurring background job schedules and operational trigger inspection within the [[domain|platform]] domain. It serves **Administrators** monitoring and controlling job schedules while triggering downstream maintenance work in [[system|product-catalog-system]] and [[system|notification-system]]. Owning domain business tables, executing search-index mutations directly, and storing credentials or business payloads in job metadata are explicitly out of scope.

:::note
A completed job firing in the Scheduler System confirms only that the trigger was dispatched—not that downstream business processing succeeded. Operators must verify target-side metrics (such as pending catalog vector updates) to confirm end-to-end completion.
:::

## Contained Capabilities

| Service / Agent                | Role in System                                                                                                                                | Primary Data Store                | Interaction Style (Sync / Async)          |
| :----------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------- | :---------------------------------------- |
| [[service\|scheduler-service]] | Executes durable UTC cron schedules, persists execution history, publishes batch triggers via outbox, and exposes an admin operator dashboard | [[container\|scheduler-database]] | Async (Kafka publisher) & Sync (Admin UI) |

## External Interactions & Trust Boundaries

- **Administrator access:** Administrators authenticate via [[system|identity-provider]] OIDC (`admin` role) to inspect triggers, review execution history, and pause or resume schedules in the operator dashboard.
- **Catalog indexing trigger:** Every five minutes UTC, [[service|scheduler-service]] publishes [[event|ProcessVectorBatchIntegrationEvent]] to [[channel|scheduler.process-vector-batch]] using a transactional outbox; [[service|catalog-ingestion]] consumes the trigger and processes pending updates under its own concurrency lock.
- **No direct domain table access:** The scheduler never reads or writes domain tables in Catalog or Notification; all coordination happens over explicit messaging or service contracts.

<Accordion title="Reliability & Secret Hygiene Notes">
	- **Misfire & concurrency safety:** Durable trigger state survives restarts, misfires follow
	explicit recovery policies rather than silent skips, and non-concurrent job execution prevents
	overlapping runs. - **Secret isolation:** Outbound credentials reside in runtime secret
	configuration and must never appear in schedule metadata or routine logs.
</Accordion>

## System Visualizations

### System Context

<ContextDiagram />

### Component Topology

<NodeGraph mode="full" search="false" legend="false" />

### Architecture Decisions

<ADRTable />

## Related Documentation

- [[flow|product-ingestion]] — Scheduled catalog vector ingestion workflow.
- [[doc|platform/005-quartz-schema]] — Persistent scheduler schema reference.
- [[doc|domains/bookworm/subdomains/platform/guides/scheduled-work-and-email-notifications]] — Guide to scheduled platform work.
