1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
5 from cwltool.context import LoadingContext, RuntimeContext
7 class ArvLoadingContext(LoadingContext):
8 def __init__(self, kwargs=None):
9 super(ArvLoadingContext, self).__init__(kwargs)
11 class ArvRuntimeContext(RuntimeContext):
12 def __init__(self, kwargs=None):
14 self.extra_reffiles = []
16 self.enable_reuse = True
18 self.submit_request_uuid = None
19 self.project_uuid = None
20 self.trash_intermediate = False
21 self.intermediate_output_ttl = 0
22 self.update_workflow = ""
23 self.create_workflow = False
24 self.submit_runner_ram = 0
25 self.ignore_docker_for_reuse = False
27 self.submit_runner_image = None
29 self.cwl_runner_job = None
30 self.storage_classes = "default"
31 self.current_container = None
33 super(ArvRuntimeContext, self).__init__(kwargs)