feat(render+admin): stop a render job (admin, any owner)
Build backend images / build content-svc (push) Failing after 1m0s
Build backend images / build file-svc (push) Failing after 1m3s
Build backend images / build gateway (push) Failing after 1m2s
Build backend images / build identity-svc (push) Failing after 1m20s
Build backend images / build notification-svc (push) Failing after 1m13s
Build backend images / build render-svc (push) Failing after 1m5s
Build backend images / build studio-svc (push) Failing after 1m0s

The render-queue cancel button used the owner-scoped /cancel (WHERE user_id=…),
so an admin couldn't stop another user's job. Added:
- render-svc: POST /v1/renders/:job_id/stop (admin-gated) → store.StopJob cancels
  any in-progress job regardless of owner and frees the assigned node
- admin: render-queue button now "توقف" → /api/admin/renders/{id}/stop (with confirm)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-03 01:39:33 +03:30
parent c7694a9bbf
commit 7f7feabb85
7 changed files with 53 additions and 6 deletions
+2 -1
View File
@@ -415,7 +415,8 @@
"colCreated": "Created",
"colActions": "Actions",
"actionRetry": "Retry",
"actionCancel": "Cancel"
"actionCancel": "Cancel",
"actionStop": "Stop"
},
"componentsAuthAuthPageContent": {
"genericError": "Something went wrong. Please try again.",
+2 -1
View File
@@ -415,7 +415,8 @@
"colCreated": "زمان ایجاد",
"colActions": "عملیات",
"actionRetry": "تلاش مجدد",
"actionCancel": "لغو"
"actionCancel": "لغو",
"actionStop": "توقف"
},
"componentsAuthAuthPageContent": {
"genericError": "خطایی رخ داد. لطفاً دوباره تلاش کنید.",