Skip to content

Commit

Permalink
more linting of whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Maiken Pedersen committed Sep 13, 2023
1 parent 678dd76 commit 83417f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/galaxy/jobs/runners/arc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
ensure_pyarc,
get_client,
)

try:
from pyarcrest.errors import (
ARCHTTPError,
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 83417f8

Please sign in to comment.