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)