Add API endpoint to clear cached scripts for workflows (#4809)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Shuchang Zheng <wintonzheng@users.noreply.github.com>
This commit is contained in:
Suchintan
2026-02-19 16:50:39 -05:00
committed by GitHub
parent 4dbe0f9772
commit 4d80272abe
3 changed files with 108 additions and 0 deletions

View File

@@ -182,3 +182,10 @@ class WorkflowScript(BaseModel):
created_at: datetime
modified_at: datetime
deleted_at: datetime | None = None
class ClearCacheResponse(BaseModel):
"""Response model for cache clearing operations."""
deleted_count: int = Field(..., description="Number of cached entries deleted")
message: str = Field(..., description="Status message")