Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
jess
Commits
9e597ed2
Commit
9e597ed2
authored
Aug 20, 2021
by
Marian Babik
Browse files
fixed corrupted job file recovery
parent
c4cf3ec0
Changes
1
Hide whitespace changes
Inline
Side-by-side
jess/jobs.py
View file @
9e597ed2
...
...
@@ -294,7 +294,7 @@ class Tracker(object):
jess_log
.
debug
(
' loading job file {}'
.
format
(
self
.
_job_file
))
try
:
job
=
Job
.
load
(
self
.
_job_file
)
except
EOFError
:
except
(
EOFError
,
ValueError
)
as
e
:
# job file probably corrupted; remove it and re-submit new job
os
.
remove
(
self
.
_job_file
)
job
=
self
.
_jmi
.
submit
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment