mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Use cluster_files_directory for SGE/DRMAA instead of the hardcoded database/pbs/. Fixes issue #512 (thanks, Anonymous).
This commit is contained in:
@@ -145,8 +145,8 @@ class DRMAAJobRunner( BaseJobRunner ):
|
||||
job_wrapper.change_state( model.Job.states.QUEUED )
|
||||
|
||||
# define job attributes
|
||||
ofile = "%s/database/pbs/%s.o" % (os.getcwd(), job_wrapper.get_id_tag())
|
||||
efile = "%s/database/pbs/%s.e" % (os.getcwd(), job_wrapper.get_id_tag())
|
||||
ofile = "%s/%s.o" % (self.app.config.cluster_files_directory, job_wrapper.job_id)
|
||||
efile = "%s/%s.e" % (self.app.config.cluster_files_directory, job_wrapper.job_id)
|
||||
jt = self.ds.createJobTemplate()
|
||||
jt.remoteCommand = "%s/database/pbs/galaxy_%s.sh" % (os.getcwd(), job_wrapper.get_id_tag())
|
||||
jt.outputPath = ":%s" % ofile
|
||||
|
||||
@@ -188,8 +188,8 @@ class SGEJobRunner( BaseJobRunner ):
|
||||
sge_extra_params = self.determine_sge_tool_parameters ( runner_url )
|
||||
|
||||
# define job attributes
|
||||
ofile = "%s/database/pbs/%s.o" % (os.getcwd(), job_wrapper.job_id)
|
||||
efile = "%s/database/pbs/%s.e" % (os.getcwd(), job_wrapper.job_id)
|
||||
ofile = "%s/%s.o" % (self.app.config.cluster_files_directory, job_wrapper.job_id)
|
||||
efile = "%s/%s.e" % (self.app.config.cluster_files_directory, job_wrapper.job_id)
|
||||
jt = self.ds.createJobTemplate()
|
||||
jt.remoteCommand = "%s/database/pbs/galaxy_%s.sh" % (os.getcwd(), job_wrapper.job_id)
|
||||
jt.outputPath = ":%s" % ofile
|
||||
|
||||
Reference in New Issue
Block a user