mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-03 21:34:30 +08:00
12 lines
513 B
Python
12 lines
513 B
Python
from galaxy.jobs.job_destination import JobDestination
|
|
|
|
|
|
def the_destination(resource_params):
|
|
job_destination = JobDestination(runner="local")
|
|
how_store = resource_params.get("how_store", None)
|
|
# Retrieve answer from user about whether to store on fast or slow disk,
|
|
# translate to object store ID to give to job handling code.
|
|
object_store_id = "dynamic_s3" if how_store == "slow" else "dynamic_ebs"
|
|
job_destination.params["object_store_id"] = object_store_id
|
|
return job_destination
|