Skip to content

Commit

Permalink
filter out paused crons
Browse files Browse the repository at this point in the history
  • Loading branch information
nicarq committed Dec 18, 2024
1 parent fcd508b commit d488c7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shinkai-bin/shinkai-node/src/cron_tasks/cron_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ impl CronManager {
.get_all_cron_tasks()
.unwrap_or_default()
.into_iter()
.filter(|task| !task.paused)
.map(|task| (task.created_at.clone(), vec![(task.task_id.to_string(), task)]))
.collect()
};
Expand Down

0 comments on commit d488c7f

Please sign in to comment.