diff --git a/litellm/proxy/scheduled_tasks/endpoints.py b/litellm/proxy/scheduled_tasks/endpoints.py index 1990eb6e646..f17033b4c4c 100644 --- a/litellm/proxy/scheduled_tasks/endpoints.py +++ b/litellm/proxy/scheduled_tasks/endpoints.py @@ -341,6 +341,7 @@ async def update_scheduled_task( raise HTTPException( status_code=400, detail="expires_at must be in the future" ) + fields["expires_at"] = new_expires try: row = await store.update_task_for_owner(