X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9a1ae5161d87d47f61985145da61ea7b219fd8a6..540b72d62a94015f116ba077e279a5f10d666778:/sdk/cwl/arvados_cwl/context.py diff --git a/sdk/cwl/arvados_cwl/context.py b/sdk/cwl/arvados_cwl/context.py index 7831e1cfd0..125527f783 100644 --- a/sdk/cwl/arvados_cwl/context.py +++ b/sdk/cwl/arvados_cwl/context.py @@ -29,13 +29,34 @@ class ArvRuntimeContext(RuntimeContext): self.wait = True self.cwl_runner_job = None self.storage_classes = "default" + self.intermediate_storage_classes = "default" self.current_container = None self.http_timeout = 300 self.submit_runner_cluster = None self.cluster_target_id = 0 self.always_submit_runner = False + self.collection_cache_size = 256 + self.match_local_docker = False + self.enable_preemptible = None + self.copy_deps = None + self.defer_downloads = False + self.varying_url_params = "" + self.prefer_cached_downloads = False + self.cached_docker_lookups = {} super(ArvRuntimeContext, self).__init__(kwargs) if self.submit_request_uuid: self.submit_runner_cluster = self.submit_request_uuid[0:5] + + def get_outdir(self) -> str: + """Return self.outdir or create one with self.tmp_outdir_prefix.""" + return self.outdir + + def get_tmpdir(self) -> str: + """Return self.tmpdir or create one with self.tmpdir_prefix.""" + return self.tmpdir + + def create_tmpdir(self) -> str: + """Return self.tmpdir or create one with self.tmpdir_prefix.""" + return self.tmpdir