Skip to main content

Crate chronon_core

Crate chronon_core 

Source
Expand description

Chronon core — portable types and the SchedulerStore persistence port.

This crate defines domain models, error types, script identity ports, and the async storage trait that backends implement. It has no runtime, scheduler, or HTTP dependencies.

§Goals

§Non-goals

  • Running tick loops or executing scripts (see chronon-runtime and chronon-executor)
  • Choosing a storage backend (hosts register implementations at boot)

§Modules

§Getting started

Implement SchedulerStore for your storage substrate, then register it on StoreRouter::register_global or pass the store directly to ChrononBuilder in chronon-runtime.

See also: DEFAULT_STORE_NAME, ScriptHandle.

Re-exports§

pub use context::ContextFactory;
pub use context::IdentityError;
pub use context::JsonScriptContextFactory;
pub use context::NoOpContextFactory;
pub use context::NoOpScriptContext;
pub use context::ScriptContext;
pub use handle::ScriptHandle;
pub use error::ChrononError;
pub use error::Result;
pub use models::Job;
pub use models::JobRevision;
pub use models::Lease;
pub use models::MisfirePolicy;
pub use models::PartitionAssignment;
pub use models::RetryPolicy;
pub use models::Run;
pub use models::RunStatus;
pub use models::ScheduleKind;
pub use models::SchedulerLeader;
pub use models::Script;
pub use models::Worker;
pub use models::WorkerStatus;
pub use router::default_store_from_global;
pub use router::StoreRouter;
pub use router::DEFAULT_STORE_NAME;
pub use store::SchedulerStore;

Modules§

context
Script execution context ports.
error
Error types for Chronon.
handle
Typed script handle for job scheduling.
models
Data models for Chronon entities.
router
Named SchedulerStore registration at host boot.
store
Scheduler persistence port for jobs, runs, revisions, and coordinator metadata.