Skip to content

Commit

Permalink
fix: schedule run
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Nov 30, 2023
1 parent 06fc448 commit d3a7720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/controllers/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d3a7720

Please sign in to comment.