fix cronjob schedule
This commit is contained in:
@@ -18,7 +18,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let scheduler = JobScheduler::new().await.unwrap();
|
||||
scheduler
|
||||
.add(
|
||||
Job::new_async("0 */3 * * *", move |_uuid, _locked| {
|
||||
Job::new_async("0 0 */3 * * *", move |_uuid, _locked| {
|
||||
let state_for_task = state.clone();
|
||||
Box::pin(async move {
|
||||
state_for_task.update().await;
|
||||
|
Reference in New Issue
Block a user