bevy_cronjob
bevy_cronjob
is a simple helper to run cronjobs (at repeated schedule) in Bevy.
Usage
use Duration;
use ;
use ;
use ;
use ;
use schedule_passed;
Expression
the scheduling expression is base on cron
sec | min | hour | day of month | month | day of week | year |
---|---|---|---|---|---|---|
* | * | * | * | * | * | * |
0-59 | 0-59 | 0-23 | 1-23 | 1-12 | 1-7 | 1970-2100 |
Time is specified in UTC. Note that the year may be omitted.
Comma separated values such as 1,2,3
are allowed. For example, a schedule of 0,15,30,45 * * * * *
' would execute on every 15 seconds.
Ranges can be specified with a dash. For example 1-5 * * * * *
' would execute on every second for the first 5 seconds of a minute.
Supported Versions
bevy | bevy_cronjob |
---|---|
0.12 | 0.2 |
0.11 | 0.1 |
License
Dual-licensed under either
- MIT
- Apache 2.0