[ARVADOS] updated: 1.2.0-318-gf36f4b22c
Git user
git at public.curoverse.com
Wed Nov 7 16:24:17 EST 2018
Summary of changes:
sdk/cwl/arvados_cwl/__init__.py | 4 ++++
sdk/cwl/arvados_cwl/context.py | 1 +
sdk/cwl/arvados_cwl/executor.py | 2 +-
sdk/cwl/tests/test_submit.py | 19 +++++++++++++++++++
4 files changed, 25 insertions(+), 1 deletion(-)
via f36f4b22c60b914042f69dd27e96cac49cead9cf (commit)
via 99aa7102ee0516753bfe998e8aa2ecea7999e64e (commit)
from 233fd4313a240d98efdd3b51b845cf40e9645f91 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit f36f4b22c60b914042f69dd27e96cac49cead9cf
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Wed Nov 7 16:24:02 2018 -0500
14198: Add --always-submit-runner
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz at veritasgenetics.com>
diff --git a/sdk/cwl/arvados_cwl/__init__.py b/sdk/cwl/arvados_cwl/__init__.py
index a29bafb22..605d33005 100644
--- a/sdk/cwl/arvados_cwl/__init__.py
+++ b/sdk/cwl/arvados_cwl/__init__.py
@@ -145,6 +145,10 @@ def arg_parser(): # type: () -> argparse.ArgumentParser
help="Docker image for workflow runner job, default arvados/jobs:%s" % __version__,
default=None)
+ parser.add_argument("--always-submit-runner", action="store_true",
+ help="Always submit a runner to manage the workflow, even when running only a single CommandLineTool",
+ default=False)
+
exgroup = parser.add_mutually_exclusive_group()
exgroup.add_argument("--submit-request-uuid", type=str,
default=None,
diff --git a/sdk/cwl/arvados_cwl/context.py b/sdk/cwl/arvados_cwl/context.py
index 48f92b77f..8af3f20c8 100644
--- a/sdk/cwl/arvados_cwl/context.py
+++ b/sdk/cwl/arvados_cwl/context.py
@@ -35,6 +35,7 @@ class ArvRuntimeContext(RuntimeContext):
self.http_timeout = 300
self.submit_runner_cluster = None
self.cluster_target_id = 0
+ self.always_submit_runner = False
super(ArvRuntimeContext, self).__init__(kwargs)
diff --git a/sdk/cwl/arvados_cwl/executor.py b/sdk/cwl/arvados_cwl/executor.py
index c6dc71629..994594023 100644
--- a/sdk/cwl/arvados_cwl/executor.py
+++ b/sdk/cwl/arvados_cwl/executor.py
@@ -586,7 +586,7 @@ http://doc.arvados.org/install/install-api-server.html#disable_api_methods
if runtimeContext.submit:
# Submit a runner job to run the workflow for us.
if self.work_api == "containers":
- if tool.tool["class"] == "CommandLineTool" and runtimeContext.wait:
+ if tool.tool["class"] == "CommandLineTool" and runtimeContext.wait and (not runtimeContext.always_submit_runner):
runtimeContext.runnerjob = tool.tool["id"]
runnerjob = tool.job(job_order,
self.output_callback,
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list