-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[guidance request] #351
Comments
Hi @gongwei-130, you can do something like this: import pyslurm
desc = pyslurm.JobSubmitDescription(
user_id = <user-name or uid>,
group_id = <group-name or gid>,
... other job args ...
)
id = desc.submit()
.... It should be noted though that submitting a Job under a different User/Group ID requires root permissions. |
@tazend forget get this back to you, it works fine. Additional question, how to use "job_desc.environment"? I have following setting which would introduce error, which would go away if I remove the environment set.
error:
|
Hi, mhh interesting, not sure why that happens. I will need to try and reproduce/debug this on my side to see whats going on. |
@tazend more questions:
|
Hi, srun makes sure that whatever amount of To your second question, not sure if it will work properly the way you have setup the script here. Note that SIGKILL cannot be catched for example. The SIGTERM trap might be ignored due to the way slurm handles signals, not sure though. (you could test around with something like Instead of docker you could also have a look at an alternative called |
Details
Issue
I am using pyslurm building a service, where user would use it to submit the slurm job. But looks like slurm would treat all jobs be submitted by the user who started the service. Anyway to let service use pyslurm to submit job on behave of different user?
The text was updated successfully, but these errors were encountered: