cwltool.context
Shared context objects that replace use of kwargs.
Attributes
Classes
Shared kwargs based initializer for |
|
Shared kwargs based initializer for |
|
Shared kwargs based initializer for |
Functions
|
Fake implementation of the make tool function. |
|
Move logs from log location to final output. |
|
Set the log directory. |
|
Return the |
Module Contents
- class cwltool.context.ContextBase(kwargs=None)
Shared kwargs based initializer for
RuntimeContext
andLoadingContext
.
- cwltool.context.make_tool_notimpl(toolpath_object, loadingContext)
Fake implementation of the make tool function.
- Parameters:
toolpath_object (ruamel.yaml.comments.CommentedMap)
loadingContext (LoadingContext)
- Return type:
- cwltool.context.default_make_tool
- cwltool.context.log_handler(outdir, base_path_logs, stdout_path, stderr_path)
Move logs from log location to final output.
- cwltool.context.set_log_dir(outdir, log_dir, subdir_name)
Set the log directory.
- class cwltool.context.LoadingContext(kwargs=None)
Bases:
ContextBase
Shared kwargs based initializer for
RuntimeContext
andLoadingContext
.- metadata: cwltool.utils.CWLObjectType
- loader: schema_salad.ref_resolver.Loader | None = None
- avsc_names: schema_salad.avro.schema.Names | None = None
- construct_tool_object
- research_obj: cwltool.cwlprov.ro.ResearchObject | None = None
- prov_obj: cwltool.cwlprov.provenance_profile.ProvenanceProfile | None = None
- fast_parser = False
- skip_resolve_all = False
- skip_schemas = False
- copy()
Return a copy of this
LoadingContext
.- Return type:
- class cwltool.context.RuntimeContext(kwargs=None)
Bases:
ContextBase
Shared kwargs based initializer for
RuntimeContext
andLoadingContext
.- secret_store: cwltool.secrets.SecretStore | None = None
- preserve_environment: collections.abc.Iterable[str] | None = None
- move_outputs: Literal['move'] | Literal['leave'] | Literal['copy'] = 'move'
- set_log_dir
- log_dir_handler
- mutation_manager: cwltool.mutation.MutationManager | None = None
- make_fs_access
- path_mapper
- builder: cwltool.builder.Builder | None = None
- job_script_provider: cwltool.software_requirements.DependenciesConfiguration | None = None
- postScatterEval: Callable[[cwltool.utils.CWLObjectType], cwltool.utils.CWLObjectType | None] | None = None
- on_error: Literal['stop'] | Literal['continue'] = 'stop'
- workflow_eval_lock: threading.Condition | None = None
- research_obj: cwltool.cwlprov.ro.ResearchObject | None = None
- prov_obj: cwltool.cwlprov.provenance_profile.ProvenanceProfile | None = None
- mpi_config: cwltool.mpi.MpiConfig
- get_outdir()
Return
outdir
or create one withtmp_outdir_prefix
.- Return type:
- get_tmpdir()
Return
tmpdir
or create one withtmpdir_prefix
.- Return type:
- get_stagedir()
Return
stagedir
or create one withtmpdir_prefix
.- Return type:
- create_tmpdir()
Create a temporary directory that respects
tmpdir_prefix
.- Return type:
- create_outdir()
Create a temporary directory that respects
tmp_outdir_prefix
.- Return type:
- copy()
Return a copy of this
RuntimeContext
.- Return type:
- cwltool.context.getdefault(val, default)
Return the
val
using thedefault
as backup in case the val isNone
.- Parameters:
val (Any)
default (Any)
- Return type:
Any