From 87337bad17c2cc7698a3ad150def0a1cf4ebc273 Mon Sep 17 00:00:00 2001 From: Matthias Bernt Date: Wed, 9 Feb 2022 19:16:13 +0100 Subject: [PATCH] allow univa destinations wo nativespec if no nativespec is given for a univa destination the runner does not know how much run time / memory was given to a job which led to a comparison with `None`. Now we default to infinite runtime and memory. --- lib/galaxy/jobs/runners/univa.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/jobs/runners/univa.py b/lib/galaxy/jobs/runners/univa.py index 645a325dc2e..21999e831fa 100644 --- a/lib/galaxy/jobs/runners/univa.py +++ b/lib/galaxy/jobs/runners/univa.py @@ -32,6 +32,7 @@ import logging import re import signal import time +from math import inf from galaxy.jobs.runners.drmaa import DRMAAJobRunner from galaxy.util import ( @@ -566,8 +567,8 @@ def _parse_native_specs(job_id, native_spec): specification string passed to GE return time,mem (or None,None if nothing found) """ - tme = None - mem = None + tme = inf + mem = inf # parse time m = re.search(r"rt=([0-9:]+)[\s,]*", native_spec) if m is not None: