Skip to content

Releases: soasme/nim-schedules

v0.2.0 is released!

22 Jul 11:38
4b359d9
Compare
Choose a tag to compare

You can use cron to schedule jobs using cron-like syntax.

import schedules, times, asyncdispatch

schedules:
  cron(minute="*/1", hour="*", day_of_month="*", month="*", day_of_week="*", id="tick"):
    echo("tick", now())

  cron(minute="*/1", hour="*", day_of_month="*", month="*", day_of_week="*", id="atick", async=true):
    echo("tick", now())
    await sleepAsync(3000)
  1. Schedule thread proc every minute.
  2. Schedule async proc every minute.

v0.1.2 is released!

08 Jul 02:32
Compare
Choose a tag to compare

Bugfix

  • #9: The first job schedule should be after startTime.

Thanks

v0.1.1

13 Jan 04:30
e775b66
Compare
Choose a tag to compare
Update schedules.nimble