Skip to content

Releases

3.1.0

Choose a tag to compare

@mydoxie mydoxie released this 08 Nov 11:45
e682a06

New

  • ScheduleConfig(timezone: 'Asia/Yangon') sets the default time zone of every task.
  • environments(['production']) runs a task only for these APP_ENV values.
  • unlessBetween(start, end) is the opposite of between().
  • New frequencies: everyThreeMinutes, everyTwoHours, twiceDailyAt, lastDayOfMonth, quarterly, yearlyOn, mondays() to sundays() and more.
  • One warning at start when onOneServer() is used with a lock store that servers do not share.

Fixes

  • schedule work now stops in a few seconds after Ctrl+C or SIGTERM. Before, it could wait up to 60 seconds.
  • dailyAt('13') means 13:00. Before, it threw an error.
  • With timeout() and withoutOverlapping(), the lock now stays until the work ends.
  • When a provider's setup() throws, the providers that already started are shut down.

Docs: Scheduler

Full list: the CHANGELOG.

3.0.0

Choose a tag to compare

@necessarylion necessarylion released this 01 Nov 04:18
93f3561

The first stable release of dox_scheduler.

Run functions or queue jobs on a cron schedule. Each task runs once per tick, across all isolates and servers.

Docs: https://dartondox.dev/latest/digging-deeper/scheduler/