commit/galaxy-central: natefoo: Handle Pulsar job stop when setting metadata remotely.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/21f2a42a06d7/ Changeset: 21f2a42a06d7 Branch: stable User: natefoo Date: 2014-09-05 17:41:05 Summary: Handle Pulsar job stop when setting metadata remotely. Affected #: 1 file diff -r 65d1a7c363e95b1af3ba81655c3965d5b8917af0 -r 21f2a42a06d7d2b8c408aed22c691f5e8b209311 lib/galaxy/jobs/runners/pulsar.py --- a/lib/galaxy/jobs/runners/pulsar.py +++ b/lib/galaxy/jobs/runners/pulsar.py @@ -416,8 +416,9 @@ def stop_job( self, job ): #if our local job has JobExternalOutputMetadata associated, then our primary job has to have already finished + client = self.get_client( job.destination_params, job.job_runner_external_id ) job_ext_output_metadata = job.get_external_output_metadata() - if job_ext_output_metadata: + if not PulsarJobRunner.__remote_metadata( client ) and job_ext_output_metadata: pid = job_ext_output_metadata[0].job_runner_external_pid # every JobExternalOutputMetadata has a pid set, we just need to take from one of them if pid in [ None, '' ]: log.warning( "stop_job(): %s: no PID in database for job, unable to stop" % job.id ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org