Expand description
Database-backed scheduled task catalog and claim store.
Scheduled task rows persist product runtime schedules across process restarts and coordinate
due-work claims across service instances. aster_forge_tasks owns the public scheduling DTOs
and runner trait; this module only supplies the SeaORM table contract and store implementation.
Product crates still own task names, intervals, execution bodies, and outcome records.
Structs§
- Active
Model - Generated by sea-orm-macros
- Column
Iter - An iterator over the variants of Column
- Entity
- Generated by sea-orm-macros
- Model
- SeaORM model for
scheduled_tasks. - Primary
KeyIter - An iterator over the variants of PrimaryKey
- Relation
Iter - An iterator over the variants of Relation
- Scheduled
Task DbStore - SeaORM-backed scheduled task store.
Enums§
- Column
- Generated by sea-orm-macros
- Primary
Key - Generated by sea-orm-macros
- Relation
Constants§
- SCHEDULED_
TASKS_ TABLE - Scheduled task table name.
- SCHEDULED_
TASK_ CLAIM_ EXPIRES_ AT_ COLUMN - Current claim expiry column.
- SCHEDULED_
TASK_ CLAIM_ OWNER_ ID_ COLUMN - Current claim owner column.
- SCHEDULED_
TASK_ CREATED_ AT_ COLUMN - Row creation timestamp column.
- SCHEDULED_
TASK_ DISPLAY_ NAME_ COLUMN - Operator-facing display name column.
- SCHEDULED_
TASK_ ID_ COLUMN - Stable row identifier column.
- SCHEDULED_
TASK_ LAST_ CLAIMED_ AT_ COLUMN - Last claim timestamp column.
- SCHEDULED_
TASK_ LAST_ FINISHED_ AT_ COLUMN - Last completion timestamp column.
- SCHEDULED_
TASK_ NAMESPACE_ COLUMN - Product namespace column.
- SCHEDULED_
TASK_ NAMESPACE_ NAME_ UNIQUE_ INDEX - Unique index name for one task per namespace/name pair.
- SCHEDULED_
TASK_ NAME_ COLUMN - Product task name column.
- SCHEDULED_
TASK_ NEXT_ RUN_ AT_ COLUMN - Next due timestamp column.
- SCHEDULED_
TASK_ NEXT_ RUN_ INDEX - Index name for due-time claim scans.
- SCHEDULED_
TASK_ UPDATED_ AT_ COLUMN - Row update timestamp column.
Functions§
- create_
scheduled_ tasks_ namespace_ name_ unique_ index - Builds the unique index for one scheduled task per namespace/name pair.
- create_
scheduled_ tasks_ next_ run_ index - Builds the due-time index used by scheduled task claim checks.
- create_
scheduled_ tasks_ table - Builds the shared
scheduled_taskstable creation statement. - drop_
scheduled_ tasks_ table - Builds the shared
scheduled_taskstable drop statement.