fix: remove inconsistent cleanup function

This commit is contained in:
2025-06-27 02:18:23 +08:00
parent 3a8eb88e1a
commit c8501b1768
4 changed files with 6 additions and 59 deletions

View File

@@ -185,9 +185,6 @@ impl TaskService {
tokio::task::spawn(async move {
loop {
interval.tick().await;
if let Err(e) = cron::Model::cleanup_expired_locks(ctx.as_ref()).await {
tracing::error!("Error cleaning up expired locks: {e}");
}
if let Err(e) = cron::Model::check_and_trigger_due_crons(ctx.as_ref()).await
{
tracing::error!("Error checking and triggering due crons: {e}");