fix: unscheduling a recipe should not delete them (#8978)

Signed-off-by: Angie Jones <jones.angie@gmail.com>
This commit is contained in:
Angie Jones
2026-05-03 20:26:54 -05:00
committed by GitHub
parent 45d8bf81d0
commit 17c12bfbd8
8 changed files with 60 additions and 14 deletions
+3 -3
View File
@@ -281,14 +281,14 @@ impl Agent {
)
})?;
match scheduler.remove_scheduled_job(job_id, true).await {
match scheduler.remove_scheduled_job(job_id, false).await {
Ok(()) => Ok(vec![Content::text(format!(
"Successfully deleted job '{}'",
"Successfully removed schedule for job '{}'",
job_id
))]),
Err(e) => Err(ErrorData::new(
ErrorCode::INTERNAL_ERROR,
format!("Failed to delete job: {}", e),
format!("Failed to remove schedule: {}", e),
None,
)),
}