Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
Mirrors
mutalyzer
Commits
eb1797d6
Commit
eb1797d6
authored
8 years ago
by
Vermaat
Browse files
Options
Downloads
Patches
Plain Diff
Rollback db session after batch job exception
This doesn't fix #352, but should at least alleviate most of the pain.
parent
7fde8a78
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mutalyzer/Scheduler.py
+9
-0
9 additions, 0 deletions
mutalyzer/Scheduler.py
with
9 additions
and
0 deletions
mutalyzer/Scheduler.py
+
9
−
0
View file @
eb1797d6
...
...
@@ -464,6 +464,15 @@ Mutalyzer batch scheduler""" % download_url)
"
Unexpected error occurred, dev-team notified
"
)
import
traceback
O
.
addMessage
(
__file__
,
4
,
"
DEBUG
"
,
unicode
(
repr
(
traceback
.
format_exc
())))
# We don't know what caused the exception, but it might be
# necessary to do a rollback on the session transaction in
# order to continue using the session (which is important in
# a batch setup).
# TODO: It makes sense to do this not only for name checker
# jobs, but on a higher level in the batch processing stack.
# The reason for doing it here is (I think) so there's still
# a batch result entry written.
session
.
rollback
()
#except
finally
:
#check if we need to update the database
...
...
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