Skip to content

Commit

Permalink
Merge pull request #2354 from ganga-devs/autopep8-patches/mesmith75-p…
Browse files Browse the repository at this point in the history
…atch-1

PEP8 fixes for PR #2353 (mesmith75-patch-1) by autopep8
  • Loading branch information
mesmith75 authored Jun 3, 2024
2 parents b39cc3d + 797cb8c commit dbe7f8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ganga/GangaDirac/Lib/Backends/DiracBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,6 @@ async def finalise_failed_job(job):
)
except Exception as err:
raise GangaDiracError(str(err))


@staticmethod
async def complete_dirac_job(job):
Expand Down Expand Up @@ -1328,7 +1327,7 @@ async def job_finalisation(job, updated_dirac_status):
job.been_queued = True
task = monitoring_component.loop.create_task(
DiracBase._internal_job_finalisation(job, updated_dirac_status))

try:
await task
except GangaDiracError as err:
Expand Down Expand Up @@ -1356,7 +1355,7 @@ async def job_finalisation(job, updated_dirac_status):
logger.error("Unable to finalise job %s after %s retries due to error:\n%s" %
(job.getFQID('.'), str(count), str(err)))
job.force_status('failed')
raise
raise

time.sleep(sleep_length)

Expand Down

0 comments on commit dbe7f8a

Please sign in to comment.