From 83417f8b4d47fb7f355c8db7eaec6a2a394326fa Mon Sep 17 00:00:00 2001 From: Maiken Pedersen Date: Wed, 13 Sep 2023 14:21:19 +0200 Subject: [PATCH] more linting of whitespace --- lib/galaxy/jobs/runners/arc.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/galaxy/jobs/runners/arc.py b/lib/galaxy/jobs/runners/arc.py index f2f8122acf6f..c5e54b7a1569 100644 --- a/lib/galaxy/jobs/runners/arc.py +++ b/lib/galaxy/jobs/runners/arc.py @@ -11,6 +11,7 @@ ensure_pyarc, get_client, ) + try: from pyarcrest.errors import ( ARCHTTPError, @@ -210,13 +211,11 @@ def check_watched_item(self, job_state): galaxy_workdir = galaxy_job_wrapper.working_directory mapped_state = "" - """ Set the ARC endpoint url to submit the job to - extracted from the job_destination parameters in job_conf.xml """ user_preferences = galaxy_job_wrapper.get_job().user.extra_preferences self.arc = Arc() self.arc.url = user_preferences.get("distributed_arc_compute|remote_arc_resources", "None") - """ Make sure to get a fresh token and client """ token = self._get_token(galaxy_job_wrapper) self.arcrest = get_client(self.arc.url, token=token) @@ -307,13 +306,11 @@ def stop_job(self, job_wrapper): job_id = job_wrapper.job_id arc_jobid = job_wrapper.get_job().job_runner_external_id - """ Set the ARC endpoint url to submit the job to - extracted from the job_destination parameters in job_conf.xml """ user_preferences = job_wrapper.get_job().user.extra_preferences self.arc = Arc() self.arc.url = user_preferences.get("distributed_arc_compute|remote_arc_resources", "None") - """ Make sure to get a fresh token and client """ token = self._get_token(job_wrapper) self.arcrest = get_client(self.arc.url, token=token)