{"repo":"4t145/tsuki-scheduler","free":true,"listed":false,"github":"https://github.com/4t145/tsuki-scheduler","clone":"git clone https://github.com/4t145/tsuki-scheduler.git","description":"A simple, light wight, composable and extensible scheduler for every runtime.","language":"Rust","stars":31,"topics":["cron","rust","schedule","scheduler","time","timer"],"license":"Apache-2.0","category":"workflow-automation","readme_excerpt":"Tsuki-Scheduler A simple, light wight, composable and extensible scheduler for every runtime. Usage This small crate can help you running tasks in - tokio - async-std - new thread - local - promise - and more as long as the way to create a task in this runtime is implemented. with a combination of - cron schedule - once or periodically - after or before some time - utc date-time iterator - and more as long as it implement a trait Schedule . For a more detailed document, check the rust doc. or Create scheduler Compose schedules What if I want to create a very complex schedule like this: 1. Firstly it will run at 10 seconds later. 2. And then, it will run at every hour's 10th minute. 3. Meanwhile, it will run every 80 minutes. 4. Though, it won't run within 30 minutes after the last run. 5. Finally, it will stop running after 100 days later. And you can actually do it: For some case you want to use a certain type for all schedule, you can use Box , and there's a builder api for it. Add executes and delete tasks Manage the handles You may ignore all the task handles, if you want to manage the handles, implement your own manager by implementing the trait HandleManager . Async runtime In a async runtime, you may spawn a task for scheduler to execute periodically driven by event loop. This crate provides an implementation, you can check the example for tokio runtime. Feature flags flag description :--- :---------- uuid allow to create TaskUid by uuid-v4 cron allow to create a sched","default_branch":null,"files":null,"tree":[],"storefront":"/r/4t145","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/4t145/tsuki-scheduler/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}