Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ChEMBL
C
ChEMBL
Delayed Jobs
Delayed Jobs API
Commits
39854dd7
Commit
39854dd7
authored
Apr 01, 2021
by
David Mendez
Browse files
Job status: do not attempt to check if checker failed if last_checked_at is None
parent
ea1f7eee
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
app/models/delayed_job_models.py
app/models/delayed_job_models.py
+3
-0
No files found.
app/models/delayed_job_models.py
View file @
39854dd7
...
...
@@ -215,6 +215,9 @@ class DelayedJob(DB.Model):
"""
:return: True if the checker seems to have died, false otherwise
"""
if
self
.
last_lsf_checked_at
is
None
:
return
False
lsf_script_errored
=
self
.
last_lsf_check_status
!=
0
death_assumption_seconds
=
RUN_CONFIG
.
get
(
'status_agent'
).
get
(
'death_assumption_seconds'
)
checker_assumed_dead_time
=
app_utils
.
get_utc_now
()
-
datetime
.
timedelta
(
seconds
=
death_assumption_seconds
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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