Warning
This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.
galaxy.job_execution package¶
Submodules¶
galaxy.job_execution.datasets module¶
Utility classes allowing Job interface to reason about datasets.
-
class
galaxy.job_execution.datasets.
DatasetPath
(dataset_id, real_path, false_path=None, false_extra_files_path=None, false_metadata_path=None, mutable=True, dataset_uuid=None, object_store_id=None)[source]¶ Bases:
object
-
class
galaxy.job_execution.datasets.
DatasetPathRewriter
[source]¶ Bases:
object
Used by runner to rewrite paths.
-
class
galaxy.job_execution.datasets.
NullDatasetPathRewriter
[source]¶ Bases:
object
Used by default for jobwrapper, do not rewrite anything.
-
class
galaxy.job_execution.datasets.
OutputsToWorkingDirectoryPathRewriter
(working_directory, outputs_directory_name)[source]¶ Bases:
object
Rewrites all paths to place them in the specified working directory for normal jobs when Galaxy is configured with app.config.outputs_to_working_directory. Job runner base class is responsible for copying these out after job is complete.
-
class
galaxy.job_execution.datasets.
TaskPathRewriter
(working_directory, job_dataset_path_rewriter)[source]¶ Bases:
object
Rewrites all paths to place them in the specified working directory for TaskWrapper. TaskWrapper is responsible for putting them there and pulling them out.
galaxy.job_execution.output_collect module¶
Code allowing tools to define extra files associated with an output datset.
-
class
galaxy.job_execution.output_collect.
PermissionProvider
(inp_data, security_agent, job)[source]¶ Bases:
object
-
__init__
(inp_data, security_agent, job)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
property
permissions
¶
-
-
galaxy.job_execution.output_collect.
collect_dynamic_outputs
(job_context, output_collections)[source]¶
-
class
galaxy.job_execution.output_collect.
JobContext
(tool, tool_provided_metadata, job, job_working_directory, permission_provider, metadata_source_provider, input_dbkey, object_store, final_job_state, flush_per_n_datasets=None)[source]¶ Bases:
galaxy.model.store.discover.ModelPersistenceContext
,galaxy.job_execution.output_collect.BaseJobContext
-
__init__
(tool, tool_provided_metadata, job, job_working_directory, permission_provider, metadata_source_provider, input_dbkey, object_store, final_job_state, flush_per_n_datasets=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
property
tag_handler
¶ Return a galaxy.model.tags.TagHandler-like object for persisting tags.
-
property
work_context
¶
-
property
user
¶ If bound to a database, return the user the datasets should be created for.
Return None otherwise.
-
create_library_folder
(parent_folder, name, description)[source]¶ Create a library folder ready from supplied attributes for supplied parent.
-
add_output_dataset_association
(name, dataset)[source]¶ If discovering outputs for a job, persist output dataset association.
-
add_library_dataset_to_folder
(library_folder, ld)[source]¶ Add library dataset to persisted library folder.
-
-
class
galaxy.job_execution.output_collect.
SessionlessJobContext
(metadata_params, tool_provided_metadata, object_store, export_store, import_store, working_directory, final_job_state)[source]¶ Bases:
galaxy.model.store.discover.SessionlessModelPersistenceContext
,galaxy.job_execution.output_collect.BaseJobContext
-
__init__
(metadata_params, tool_provided_metadata, object_store, export_store, import_store, working_directory, final_job_state)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
-
galaxy.job_execution.output_collect.
collect_primary_datasets
(job_context, output, input_ext)[source]¶
-
galaxy.job_execution.output_collect.
discover_files
(output_name, tool_provided_metadata, extra_file_collectors, job_working_directory, matchable)[source]¶
-
galaxy.job_execution.output_collect.
walk_over_file_collectors
(extra_file_collectors, job_working_directory, matchable)[source]¶
-
galaxy.job_execution.output_collect.
walk_over_extra_files
(target_dir, extra_file_collector, job_working_directory, matchable, parent_paths=None)[source]¶ Walks through all files in a given directory, and returns all files that match the given collector’s match criteria. If the collector has the recurse flag enabled, will also recursively descend into child folders.
-
class
galaxy.job_execution.output_collect.
ToolMetadataDatasetCollector
(dataset_collection_description)[source]¶ Bases:
object
-
class
galaxy.job_execution.output_collect.
DatasetCollector
(dataset_collection_description)[source]¶ Bases:
object
-
galaxy.job_execution.output_collect.
read_exit_code_from
(exit_code_file, id_tag)[source]¶ Read exit code reported for a Galaxy job.