Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Runner Mirror
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adrian Schmitz
Runner Mirror
Commits
fed9df82
Commit
fed9df82
authored
Oct 9, 2023
by
Adrian Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
HOTFIX: Catch Slurm errors and remove
Signed-off-by:
Adrian Schmitz
<
a.schmitz@itc.rwth-aachen.de
>
parent
b277960a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modes/slurm/shared.py
+5
-1
5 additions, 1 deletion
core/modes/slurm/shared.py
with
5 additions
and
1 deletion
core/modes/slurm/shared.py
+
5
−
1
View file @
fed9df82
...
...
@@ -37,7 +37,11 @@ class SingleSlurmJobAcrossStages(Slurm, ABC):
self
.
job
.
get_parameters
().
split
(
"
"
)
salloc_out
=
self
.
executor
.
allocator
(
params
=
'
'
.
join
(
params
))
logging
.
debug
(
f
'
run_properties salloc_out=
{
salloc_out
}
'
)
try
:
self
.
slurm_job_id
=
re
.
search
(
r
'
salloc: job (\d+)
'
,
salloc_out
).
group
(
1
)
except
:
logging
.
error
(
f
'
run_properties salloc_out=
{
salloc_out
}
'
)
with
open
(
self
.
slurm_jobid_file
,
'
w+
'
)
as
slurm_jobid_fp
:
slurm_jobid_fp
.
write
(
self
.
slurm_job_id
+
'
\n
'
)
with
open
(
self
.
cc_slurm_jobid_file
,
'
w+
'
)
as
slurm_jobid_fp
:
...
...
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