From b1042fc5bc5fed27b193742a28156bba0f8b34a1 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 19 Mar 2024 19:39:00 +0100 Subject: [PATCH] Just select the id instead of the whole model to access the id --- lib/galaxy/jobs/runners/pulsar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/jobs/runners/pulsar.py b/lib/galaxy/jobs/runners/pulsar.py index 45128847f55a..634e20675440 100644 --- a/lib/galaxy/jobs/runners/pulsar.py +++ b/lib/galaxy/jobs/runners/pulsar.py @@ -977,8 +977,8 @@ def __async_update(self, full_status): remote_job_id = full_status["job_id"] if len(remote_job_id) == 32: # It is a UUID - assign_ids = uuid in destination params... - stmt = select(model.Job).filter(model.Job.job_runner_external_id == remote_job_id) - galaxy_job_id = self.app.model.session.execute(stmt).scalar_one().id + stmt = select(model.Job.id).filter(model.Job.job_runner_external_id == remote_job_id) + galaxy_job_id = self.app.model.session.execute(stmt).scalar_one() else: galaxy_job_id = remote_job_id job, job_wrapper = self.app.job_manager.job_handler.job_queue.job_pair_for_id(galaxy_job_id)