X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/49a647b963d16c7035d514ea6a09a11afe3a5d19..49a841a5179307f0c8d84f647a71f44fb2b4b26d:/doc/user/cwl/cwl-extensions.html.textile.liquid diff --git a/doc/user/cwl/cwl-extensions.html.textile.liquid b/doc/user/cwl/cwl-extensions.html.textile.liquid index 8a7e64baa8..8aef8ac0c4 100644 --- a/doc/user/cwl/cwl-extensions.html.textile.liquid +++ b/doc/user/cwl/cwl-extensions.html.textile.liquid @@ -11,6 +11,7 @@ To use Arvados CWL extensions, add the following @$namespaces@ section at the to
 $namespaces:
   arv: "http://arvados.org/cwl#"
+  cwltool: "http://commonwl.org/cwltool#"
 
Arvados extensions must go into the @hints@ section, for example: @@ -24,6 +25,8 @@ hints: arv:PartitionRequirement: partition: dev_partition arv:APIRequirement: {} + cwltool:LoadListingRequirement: + loadListing: shallow_listing h2. arv:RunInSingleContainer @@ -54,3 +57,17 @@ table(table table-bordered table-condensed). h2. arv:APIRequirement Indicates that process wants to access to the Arvados API. Will be granted limited network access and have @ARVADOS_API_HOST@ and @ARVADOS_API_TOKEN@ set in the environment. + +h2. cwltool:LoadListingRequirement + +In CWL v1.0 documents, the default behavior for Directory objects is to recursively expand the @listing@ for access by parameter references an expressions. For directory trees containing many files, this can be expensive in both time and memory usage. Use @cwltool:LoadListingRequirement@ to change the behavior for expansion of directory listings in the workflow runner. + +table(table table-bordered table-condensed). +|_. Field |_. Type |_. Description | +|loadListing|string|One of @no_listing@, @shallow_listing@, or @deep_listing@| + +*no_listing*: Do not expand directory listing at all. The @listing@ field on the Directory object will be undefined. + +*shallow_listing*: Only expand the first level of directory listing. The @listing@ field on the toplevel Directory object will contain the directory contents, however @listing@ will not be defined on subdirectories. + +*deep_listing*: Recursively expand all levels of directory listing. The @listing@ field will be provided on the toplevel object and all subdirectories.