mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Apply suggestions from code review
Co-Authored-By: Nicola Soranzo <nicola.soranzo@gmail.com>
This commit is contained in:
co-authored by
Nicola Soranzo
parent
d6865ac07d
commit
5d7cb8050c
@@ -359,7 +359,7 @@ class GalaxyAppConfiguration(BaseAppConfiguration):
|
||||
self.template_path = resolve_path(kwargs.get("template_path", "templates"), self.root)
|
||||
self.template_cache = resolve_path(kwargs.get("template_cache_path", "compiled_templates"), self.data_dir)
|
||||
self.job_queue_cleanup_interval = int(kwargs.get("job_queue_cleanup_interval", "5"))
|
||||
self.cluster_files_directory = os.path.abspath(resolve_path(kwargs.get("cluster_files_directory", "pbs"), self.data_dir))
|
||||
self.cluster_files_directory = self.resolve_path(kwargs.get("cluster_files_directory", os.path.join(self.data_dir, "pbs")))
|
||||
|
||||
# Fall back to legacy job_working_directory config variable if set.
|
||||
default_jobs_directory = kwargs.get("job_working_directory", "jobs_directory")
|
||||
@@ -375,7 +375,7 @@ class GalaxyAppConfiguration(BaseAppConfiguration):
|
||||
# should probably drop the backward compatiblity to save the path check.
|
||||
self.container_image_cache_path = resolve_path(kwargs.get("container_image_cache_path", "container_images"), self.data_dir)
|
||||
if not os.path.exists(self.container_image_cache_path):
|
||||
self.container_image_cache_path = resolve_path(kwargs.get("container_image_cache_path", "container_cache"), self.data_dir)
|
||||
self.container_image_cache_path = self.resolve_path(kwargs.get("container_image_cache_path", os.path.join(self.data_dir, "container_cache")))
|
||||
self.outputs_to_working_directory = string_as_bool(kwargs.get('outputs_to_working_directory', False))
|
||||
self.output_size_limit = int(kwargs.get('output_size_limit', 0))
|
||||
self.retry_job_output_collection = int(kwargs.get('retry_job_output_collection', 0))
|
||||
@@ -579,7 +579,7 @@ class GalaxyAppConfiguration(BaseAppConfiguration):
|
||||
self.nginx_upload_store = os.path.abspath(self.nginx_upload_store)
|
||||
self.object_store = kwargs.get('object_store', 'disk')
|
||||
self.object_store_check_old_style = string_as_bool(kwargs.get('object_store_check_old_style', False))
|
||||
self.object_store_cache_path = resolve_path(kwargs.get("object_store_cache_path", "object_store_cache"), self.data_dir)
|
||||
self.object_store_cache_path = self.resolve_path(kwargs.get("object_store_cache_path", os.path.join(self.data_dir, "object_store_cache")))
|
||||
self.object_store_store_by = kwargs.get("object_store_store_by", "id")
|
||||
|
||||
# Handle AWS-specific config options for backward compatibility
|
||||
|
||||
Reference in New Issue
Block a user