Drop redundant error message

There are only two places in the code where we set the job state to
error
(https://github.com/galaxyproject/galaxy/blob/ad9271cf6a33cb2e22bd7bed72f901e5215309da/lib/galaxy/jobs/handler.py#L722,
https://github.com/galaxyproject/galaxy/blob/ad9271cf6a33cb2e22bd7bed72f901e5215309da/lib/galaxy/jobs/handler.py#L733)
and both log more specific log messages.
This commit is contained in:
mvdbeek
2024-05-15 14:20:17 +02:00
parent ab56ee1d0a
commit 34404bd875
+2 -1
View File
@@ -569,7 +569,8 @@ class JobHandlerQueue(BaseJobHandlerQueue):
self.sa_session.add(dataset_assoc.dataset.dataset)
self.sa_session.add(job)
elif job_state == JOB_ERROR:
log.error("(%d) Error checking job readiness" % job.id)
# A more informative message is shown wherever the job state is set to error
pass
else:
log.error("(%d) Job in unknown state '%s'" % (job.id, job_state))
new_waiting_jobs.append(job.id)