Registry / async / tokio-cron-scheduler

tokio-cron-scheduler

JSON →
library0.15.1rscratesunverified

Schedule tasks on tokio using cron-like annotation, at an instant or repeat them at a fixed duration. Tasks can optionally be persisted using PostgreSQL or Nats.

# Cargo.toml [dependencies] tokio-cron-scheduler = "0.15.1"
INSTALL
IMPORT
SIG · TOKIO-CRON-SCHEDUL
T
tokio-cron-scheduler
asyncrustv0.15.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JobScheduler
use tokio_cron_scheduler::JobScheduler;

Start a job scheduler with tokio runtime.

use tokio_cron_scheduler::JobScheduler; #[tokio::main] async fn main() { let mut sched = JobScheduler::new(); sched.start().await.unwrap(); }
Debug
Known issues
gotchaRequires tokio runtime; must be used within an async context.
fix
Ensure you have a tokio runtime (e.g., #[tokio::main]).
affects: >=0.15.0
Upgrade
Version history
0.15.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
Resources
tokio-cron-scheduler — cargo add tokio-cron-scheduler · libregistry