projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20432: Tweak "error checking states on API server" message
[arvados.git]
/
sdk
/
cwl
/
arvados_cwl
/
__init__.py
diff --git
a/sdk/cwl/arvados_cwl/__init__.py
b/sdk/cwl/arvados_cwl/__init__.py
index 7818ac84f44e0646e09ebc25c940899ec4240695..fe27b91ab2165754dd94f7a85878328db6126b4d 100644
(file)
--- a/
sdk/cwl/arvados_cwl/__init__.py
+++ b/
sdk/cwl/arvados_cwl/__init__.py
@@
-212,6
+212,10
@@
def arg_parser(): # type: () -> argparse.ArgumentParser
action="store_true", default=False,
help=argparse.SUPPRESS)
action="store_true", default=False,
help=argparse.SUPPRESS)
+ parser.add_argument("--fast-parser", dest="fast_parser",
+ action="store_true", default=False,
+ help=argparse.SUPPRESS)
+
parser.add_argument("--thread-count", type=int,
default=0, help="Number of threads to use for job submit and output collection.")
parser.add_argument("--thread-count", type=int,
default=0, help="Number of threads to use for job submit and output collection.")
@@
-281,6
+285,7
@@
def add_arv_hints():
"http://arvados.org/cwl#UsePreemptible",
"http://arvados.org/cwl#OutputCollectionProperties",
"http://arvados.org/cwl#KeepCacheTypeRequirement",
"http://arvados.org/cwl#UsePreemptible",
"http://arvados.org/cwl#OutputCollectionProperties",
"http://arvados.org/cwl#KeepCacheTypeRequirement",
+ "http://arvados.org/cwl#OutOfMemoryRetry",
])
def exit_signal_handler(sigcode, frame):
])
def exit_signal_handler(sigcode, frame):
@@
-348,6
+353,12
@@
def main(args=sys.argv[1:],
# Note that unless in debug mode, some stack traces related to user
# workflow errors may be suppressed.
# Note that unless in debug mode, some stack traces related to user
# workflow errors may be suppressed.
+
+ # Set the logging on most modules INFO (instead of default which is WARNING)
+ logger.setLevel(logging.INFO)
+ logging.getLogger('arvados').setLevel(logging.INFO)
+ logging.getLogger('arvados.keep').setLevel(logging.WARNING)
+
if arvargs.debug:
logger.setLevel(logging.DEBUG)
logging.getLogger('arvados').setLevel(logging.DEBUG)
if arvargs.debug:
logger.setLevel(logging.DEBUG)
logging.getLogger('arvados').setLevel(logging.DEBUG)
@@
-377,9
+388,10
@@
def main(args=sys.argv[1:],
# unit tests.
stdout = None
# unit tests.
stdout = None
- if arvargs.
submit and (arvargs.workflow.startswith("arvwf:") or workflow_uuid_pattern.match(arvargs.workflow)
):
+ if arvargs.
workflow.startswith("arvwf:") or workflow_uuid_pattern.match(arvargs.workflow) or arvargs.workflow.startswith("keep:"
):
executor.loadingContext.do_validate = False
executor.loadingContext.do_validate = False
- executor.fast_submit = True
+ if arvargs.submit:
+ executor.fast_submit = True
return cwltool.main.main(args=arvargs,
stdout=stdout,
return cwltool.main.main(args=arvargs,
stdout=stdout,