From d3a77208c3fc427a93795827b321cce3046c6001 Mon Sep 17 00:00:00 2001 From: Mirian Okradze Date: Thu, 30 Nov 2023 15:19:00 +0400 Subject: [PATCH] fix: schedule run --- apps/server/controllers/schedule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/controllers/schedule.py b/apps/server/controllers/schedule.py index 8d29d59d0..8db038dd6 100644 --- a/apps/server/controllers/schedule.py +++ b/apps/server/controllers/schedule.py @@ -28,7 +28,7 @@ def run_schedule(schedule_id: str): raise HTTPException(status_code=404, detail="Schedule not found") if schedule.status == ScheduleStatus.PROCESSING.value: - raise HTTPException(status_code=400, detail="Schedule already is processing") + return {"message": "Schedule is already running"} try: execute_scheduled_run(db.session, schedule)