SACS - Simple Asynchronous Cron Scheduler
SACS is easy to use, lightweight scheduler and executor of repeatable async tasks for Tokio runtime.
Features
- Runs tasks with different types of schedule: once, with delay, by interval, with a cron schedule.
- Uses current
Tokioruntime or creates new one with specified type, number of threads and limited parallelism. - Allows task cancellation, getting current state and runtime statistics of the task.
- Task execution time may be limited.
- Lightweight, small, easy to use.
Quick start
Just create Scheduler and
add Task to it.
Refer to the crate's documentation for more examples and details of possible usage.
use ;
use Duration;
use info;
async
TODO
- Make
TaskIdandJobIdmore flexible and convenient to create and refer tasks. - Tracing.
- Task with limited execution time.
- More examples.
License
This project is licensed under the MIT license.