pai icon indicating copy to clipboard operation
pai copied to clipboard

different user can not submit the job with same jobname, and the job is not deleted when the user delete.

Open feng257 opened this issue 8 years ago • 2 comments

As the title says,

  1. I submitted the jobs with same jobname but belong to different user, PAI throws "duplicated job" error.
  2. I delete the user, but find out the job which submitted by the user is not deleted. I think user name and job name should be combined as a keyword for job, instead of only job name. And when the user has been deleted, all information of the user should be deleted.

feng257 avatar May 06 '18 13:05 feng257

We are aware of this issue. We have introduced a concept: "namespace". Each user can only submit the job under the user's own namespace. This way, it is fine for different user to submit a job with the same name. The feature has been implemented by this PR but it is disabled for now. We will enable this feature by default once it's been tested.

fanyangCS avatar May 09 '18 07:05 fanyangCS

We will introduce user namespace, migrate job resource endpoint from /jobs/:name to /user/:username/jobs/:jobname to avoid job naming confliction.

Gerhut avatar Aug 21 '18 04:08 Gerhut