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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user