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
RuntimeContextandLoadingContext.
- 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
RuntimeContextandLoadingContext.- metadata: cwl_utils.types.CWLObjectType
- loader: schema_salad.ref_resolver.Loader | None = None
- avsc_names: schema_salad.avro.schema.Names | None = None
- construct_tool_object
- 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
RuntimeContextandLoadingContext.- 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
- find_default_container: collections.abc.Callable[[cwltool.utils.HasReqsHints], str | None] | None = None
- 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: collections.abc.Callable[[cwl_utils.types.CWLObjectType], cwl_utils.types.CWLObjectType | None] | None = None
- on_error: Literal['stop'] | Literal['continue'] = 'stop'
- workflow_eval_lock: threading.Condition | None = None
- mpi_config: cwltool.mpi.MpiConfig
- workflow_job_step_name_callback: None | collections.abc.Callable[[cwltool.workflow_job.WorkflowJobStep, cwl_utils.types.CWLObjectType], str] = None
- get_outdir()
Return
outdiror create one withtmp_outdir_prefix.- Return type:
- get_tmpdir()
Return
tmpdiror create one withtmpdir_prefix.- Return type:
- get_stagedir()
Return
stagediror 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
valusing thedefaultas backup in case the val isNone.- Parameters:
val (Any)
default (Any)
- Return type:
Any