示例#1
0
 def query_running_job_list(self):
     """Query a list of all running jobs"""
     jobs = DrQueueJob.query_job_list()
     running_jobs = []
     for job in jobs:
         if self.query_job_tasks_left(job["_id"]) > 0:
             running_jobs.append(job)
     return running_jobs
示例#2
0
 def query_job_list(self):
     """Query a list of all jobs"""
     return DrQueueJob.query_job_list()