You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pad not removed from backend workers after deletion #103
When a pad is deleted by a user via the DELETE /pad_id request, there's no logic to remove it from running workers, leading to those warnings in logs upon periodic save
See pad_router.py
@pad_router.delete("/{pad_id}")
async def delete_pad(
pad_access: Tuple[Pad, UserSession] = Depends(require_pad_owner),
session: AsyncSession = Depends(get_session)
) -> Dict[str, Any]:
"""Delete a pad (owner only)"""
try:
pad, _ = pad_access
success = await pad.delete(session)
if not success:
raise HTTPException(
status_code=500,
detail="Failed to delete pad"
)
return {"success": True, "message": "Pad deleted successfully"}
except Exception as e:
raise HTTPException(
status_code=500,
detail=f"Failed to delete pad: {str(e)}"
)
Since the worker can be on another thread/instance of the fastAPI process when running multiple upstreams, we need to find a way to tell the canvas worker that it should stop handling the deleted pad through redis
changed the title [-]bug: pad not removed from backend workers after deletion[/-][+]Pad not removed from backend workers after deletion[/+]on Jun 2, 2025
Activity
[-]bug: pad not removed from backend workers after deletion[/-][+]Pad not removed from backend workers after deletion[/+]mrvi0 commentedon Oct 15, 2026
I will take this — stop the canvas worker for a pad when it is deleted via DELETE /{pad_id}.
fix(backend): stop canvas worker when a pad is deleted