diff --git a/.changeset/afraid-tips-hug.md b/.changeset/afraid-tips-hug.md new file mode 100644 index 0000000000..f5d09ef049 --- /dev/null +++ b/.changeset/afraid-tips-hug.md @@ -0,0 +1,5 @@ +--- +"@scow/mis-web": patch +--- + +适应 scow slurm 适配器仅可取消提交当前作业用户的作业 diff --git a/apps/mis-web/src/pages/api/job/cancelJob.ts b/apps/mis-web/src/pages/api/job/cancelJob.ts index a53a83948f..aabe6d826b 100644 --- a/apps/mis-web/src/pages/api/job/cancelJob.ts +++ b/apps/mis-web/src/pages/api/job/cancelJob.ts @@ -69,8 +69,9 @@ export default /* #__PURE__*/route(CancelJobSchema, async (req, res) => { }, }; + // Cancel the job for the user who submitted the job return asyncUnaryCall(client, "cancelJob", { - jobId: +jobId, userId: info.identityId, cluster, + jobId: +jobId, userId: job.user, cluster, }).then(async () => { await callLog(logInfo, OperationResult.SUCCESS); return { 204: null };