Skip to content

Releases: rogusdev/recurring-tasks

v2.0.1

Choose a tag to compare

@rogusdev rogusdev released this 30 Oct 14:06
  • Cancel also interrupts the initial delay (aligning task to offset for interval)

v2.0.0

Choose a tag to compare

@rogusdev rogusdev released this 30 Oct 03:09
  • Pass cancellation token to tasks for graceful stops
  • Use tokio entirely for timing tasks internally
  • No more system vs instant feature flags (tokio is only instant internally)

v1.3.0

Choose a tag to compare

@rogusdev rogusdev released this 19 Oct 04:57

Add run with cancellation token to properly shutdown on sigterm, and with better testing

v1.2.0

Choose a tag to compare

@rogusdev rogusdev released this 18 Oct 21:49

Move name, interval, and offset from AsyncTask into ManagedTask

v1.1.2

Choose a tag to compare

@rogusdev rogusdev released this 08 Feb 20:42

Adds docsrs docs for the crate, for polish. No functionality changed.

v1.1.1

Choose a tag to compare

@rogusdev rogusdev released this 08 Feb 20:06

Added offset for tasks, e.g. every 60 min, but running at the 30 min mark (i.e. 16:30, 17:30, etc) instead of always being at the top of the interval (i.e. 16:00, 17:00, etc)

Retracted 1.1.0 as it had a bug in calculating the offset start time sometimes.

v1.0.0

Choose a tag to compare

@rogusdev rogusdev released this 03 Feb 22:46

Initial release!

Include this crate to be able to define a variety of tasks that can then run periodically on a fixed recurring schedule ala https://github.com/rogusdev/recurring-tasks/blob/main/examples/simple/src/main.rs or https://github.com/rogusdev/recurring-tasks/blob/main/examples/db/src/main.rs