Releases: mvniekerk/tokio-cron-scheduler
Releases · mvniekerk/tokio-cron-scheduler
v0.9.0 Deprecate .tick()
.tick() was removed. The MPSC model caused some issues and extra code complexity. Duly culled and sent to the ether.
v0.8.4 Bugfix - lock issue when calling .add()
No new features, just a bugfix release.
v0.8.3 Remove time-rs
Removes the time-rs and oldtime feature (that enables time-rs on chrono).
Thanks @ImUrX for the report.
v0.8.2 Depency bumps
- Updated some depencies
- Removed the time crate
0.8.1 Get next tick for a job
An extra function is exposed on the JobScheduler - next_tick_for_job.
It takes the JobId as parameter and must be run from an async context.
let mut four_s_job_async = Job::new_async("1/4 * * * * *", |uuid, mut l| {
Box::pin(async move {
info!("I run async every 4 seconds id {:?}", uuid);
let next_tick = l.next_tick_for_job(uuid).await;
match next_tick {
Ok(Some(ts)) => info!("Next time for 4s is {:?}", ts),
_ => warn!("Could not get next tick for 4s job"),
}
})
})
.unwrap();
Thanks @Hellager for the suggestion.
0.8.0 Async all the things
You can't mix sync and async. This will help.
0.7.6 Shutdown fix
Thanks @tuck182 - he fixed the shutdown flow.
v0.7.4 MetaDataStorage, NotifcationStorage made public
Expose MetaDataStorage, NotifcationStorage
0.7.2 UUID bump for tokio-postgres
UUID feature flag bump when using 0.7.6 of tokio-postgres. Thank you @tiqwab for your contribution.
0.7.0 Optional Prost usage
- The feature flag
has_bytes
enables Prost generated data structures to be used - JobSchedulerError implements std::error::Error