Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rabbitmq_agents
Manage
Activity
Members
Labels
Plan
Issues
16
Issue boards
Milestones
Wiki
Code
Merge requests
9
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
rabbitmq_agents
Commits
66d24a02
Commit
66d24a02
authored
5 years ago
by
Ravi Tripathi
Browse files
Options
Downloads
Patches
Plain Diff
Adding user to slurm as well
parent
ed70a8ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!23
Feat resolve uid gid
,
!3
Adding following agents
,
!4
Test infra 1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slurm_agent.py
+1
-0
1 addition, 0 deletions
slurm_agent.py
with
1 addition
and
0 deletions
slurm_agent.py
+
1
−
0
View file @
66d24a02
...
...
@@ -39,6 +39,7 @@ def slurm_account_create(ch, method, properties, body):
username
=
msg
[
'
username
'
]
try
:
subprocess
.
call
([
"
sudo
"
,
"
sacctmgr
"
,
"
add
"
,
"
account
"
,
username
,
"
-i
"
,
"
Descripition: Add user
"
])
subprocess
.
call
([
"
sudo
"
,
"
sacctmgr
"
,
"
add
"
,
"
user
"
,
username
,
"
account=
"
+
username
,
"
-i
"
])
print
(
"
SLURM account for user {} has been added
"
.
format
(
username
))
except
:
print
(
"
Failed to create user
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment