Skip to content

Commit

Permalink
Adds async jobs to monitor queue
Browse files Browse the repository at this point in the history
  • Loading branch information
pcm32 committed Apr 13, 2016
1 parent af03b96 commit c16fe16
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/galaxy/jobs/runners/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ def queue_job( self, job_wrapper ):
k8s_job = Job(self._pykube_api, k8s_job_obj).create()


# define job attributes
ajs = AsynchronousJobState( files_dir=job_wrapper.working_directory, job_wrapper=job_wrapper )
# define job attributes in the AsyncronousJobState for follow-up
ajs = AsynchronousJobState(files_dir=job_wrapper.working_directory, job_wrapper=job_wrapper,
job_id=k8s_job_name, job_destination=job_destination)
self.monitor_queue.put(ajs)

# external_runJob_script can be None, in which case it's not used.
external_runjob_script = job_wrapper.get_destination_configuration("drmaa_external_runjob_script", None)
external_runjob_script = None

def __produce_unique_k8s_job_name(self, job_wrapper):
return job_wrapper.get_id_tag() + "-" +
Expand Down

0 comments on commit c16fe16

Please sign in to comment.