Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Corryvreckan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Fabian Simon Lex
Corryvreckan
Commits
0b9adf47
Commit
0b9adf47
authored
2 years ago
by
Fabian Simon Lex
Browse files
Options
Downloads
Patches
Plain Diff
Improved error handling to properly communicate exception of config file not being created
parent
e0efdf97
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#5344397
failed
2 years ago
Stage: compilation
Stage: testing
Stage: formatting
Stage: documentation
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jobsub/jobsub.py
+2
-2
2 additions, 2 deletions
jobsub/jobsub.py
jobsub/misc.py
+4
-1
4 additions, 1 deletion
jobsub/misc.py
with
6 additions
and
3 deletions
jobsub/jobsub.py
+
2
−
2
View file @
0b9adf47
...
...
@@ -342,8 +342,8 @@ def main(argv=None):
#submission_settings.append((args, misc.createSteeringFile(log, args, steering_string, suffix), parameters))
steering_filename
=
misc
.
createSteeringFile
(
log
,
args
,
steering_string
,
suffix
)
results
.
append
(
submitJobs
(
log
,
pool
,
args
,
steering_filename
,
parameters
))
except
:
log
.
warning
(
f
"
Could not create submission file
{
steering_string
}
with suffix
{
suffix
}
"
)
except
Exception
as
e
:
log
.
error
(
f
"
Could not create submission file with suffix
{
suffix
}
due to
{
e
}
"
)
# Return to old directory:
if
args
.
subdir
:
...
...
This diff is collapsed.
Click to expand it.
jobsub/misc.py
+
4
−
1
View file @
0b9adf47
...
...
@@ -163,7 +163,9 @@ def poolChecker(results, heartbeat = 1):
"""
checks the status of parallel pool
"""
import
time
log
=
logging
.
getLogger
(
'
jobsub
'
)
if
None
not
in
results
:
if
results
==
[]:
log
.
warning
(
"
There were problems with the submission
"
)
elif
None
not
in
results
:
# parallel loop checker from https://stackoverflow.com/a/70666333
while
True
:
log
.
debug
(
"
Heartbeat
"
)
...
...
@@ -186,3 +188,4 @@ def poolChecker(results, heartbeat = 1):
# raise exception reporting exceptions received from workers
if
all
(
ready
)
and
not
all
(
successful
):
raise
Exception
(
f
'
Workers raised following exceptions
{
[
result
.
_value
for
result
in
results
if
not
result
.
successful
()]
}
'
)
\ No newline at end of file
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