mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge branch 'release_21.05' of https://github.com/galaxyproject/galaxy into release_21.05
This commit is contained in:
@@ -633,7 +633,11 @@ class JobHandlerQueue(Monitors):
|
||||
elif history.state == "ok":
|
||||
finished = history.create_time
|
||||
|
||||
time_spent += finished - started
|
||||
if started is not None and finished is not None:
|
||||
time_spent += finished - started
|
||||
else:
|
||||
log.warning("Unable to calculate time spent for job %s; started: %s, finished: %s",
|
||||
job.id, started, finished)
|
||||
|
||||
if time_spent > self.app.job_config.limits.total_walltime["delta"]:
|
||||
return JOB_USER_OVER_TOTAL_WALLTIME, job_destination
|
||||
|
||||
@@ -6,7 +6,7 @@ History
|
||||
.. to_doc
|
||||
|
||||
---------------------
|
||||
20.9.1.dev0
|
||||
20.9.1 (2021-03-02)
|
||||
---------------------
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user