Lines Matching refs:task
69 def __init__(self, task): argument
73 self.id = task.id
75 self.task = task
76 self.hostname = task.host.hostname
79 task_info = {'task_id': task.id, 'taskname': task.task.lower(),
100 self.start_time_db = (self.task.time_started if self.task.time_started
102 self.end_time_db = (self.task.time_finished if self.task.time_finished
158 for task in tasks:
159 if not task.queue_entry or task.queue_entry.job_id != self.id:
161 t_runtime = task_runtime(task)
162 if task.time_started < self.start_time:
177 for task in self.tasks_before:
178 if task.start_time_db < start:
179 start = task.start_time_db
188 for task in self.tasks_after:
189 if end < task.end_time_db:
190 end = task.end_time_db
201 for task in self.tasks_before + self.tasks_after:
202 time += task.time_used.total_seconds()
208 for task in self.tasks_before + self.tasks_after:
209 time += task.time_used_db.total_seconds()
230 tasks += [task for task in job.get_all_tasks()
231 if task.task.task == task_type]
238 for task in tasks:
239 if task.time_used < task_min.time_used:
240 task_min = task
241 if task.time_used > task_max.time_used:
242 task_max = task
243 total += task.time_used.total_seconds()
252 tasks += [task for task in job.get_all_tasks()
253 if task.task.task == task_type]
260 for task in tasks:
261 if task.time_used_db < task_min.time_used_db:
262 task_min = task
263 if task.time_used_db > task_max.time_used_db:
264 task_max = task
265 total += task.time_used_db.total_seconds()
407 [task.task.task for task in job.get_all_tasks()])