Skip to content

Releases: mvniekerk/tokio-cron-scheduler

v0.9.0 Deprecate .tick()

16 Jan 17:39
Compare
Choose a tag to compare

.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()

13 Jan 17:50
Compare
Choose a tag to compare

No new features, just a bugfix release.

v0.8.3 Remove time-rs

30 Dec 12:57
Compare
Choose a tag to compare

Removes the time-rs and oldtime feature (that enables time-rs on chrono).
Thanks @ImUrX for the report.

v0.8.2 Depency bumps

30 Dec 12:36
Compare
Choose a tag to compare
  1. Updated some depencies
  2. Removed the time crate

0.8.1 Get next tick for a job

06 Sep 18:42
Compare
Choose a tag to compare

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

11 Aug 07:23
Compare
Choose a tag to compare

You can't mix sync and async. This will help.

0.7.6 Shutdown fix

22 Jul 05:45
Compare
Choose a tag to compare

Thanks @tuck182 - he fixed the shutdown flow.

v0.7.4 MetaDataStorage, NotifcationStorage made public

30 Jun 09:03
Compare
Choose a tag to compare

Expose MetaDataStorage, NotifcationStorage

0.7.2 UUID bump for tokio-postgres

27 Jun 04:58
Compare
Choose a tag to compare

UUID feature flag bump when using 0.7.6 of tokio-postgres. Thank you @tiqwab for your contribution.

0.7.0 Optional Prost usage

27 Apr 20:23
Compare
Choose a tag to compare
  1. The feature flag has_bytes enables Prost generated data structures to be used
  2. JobSchedulerError implements std::error::Error