Merge lp:~stylesen/lava-scheduler/multinode into lp:lava-scheduler/multinode

Proposed by Senthil Kumaran S
Status: Merged
Approved by: Neil Williams
Approved revision: no longer in the source branch.
Merged at revision: 253
Proposed branch: lp:~stylesen/lava-scheduler/multinode
Merge into: lp:lava-scheduler/multinode
Diff against target: 12 lines (+2/-1)
1 file modified
lava_scheduler_daemon/dbjobsource.py (+2/-1)
To merge this branch: bzr merge lp:~stylesen/lava-scheduler/multinode
Reviewer Review Type Date Requested Status
Neil Williams Approve
Review via email: mp+171776@code.launchpad.net

Description of the change

Get job from queue based on priority and submit_time. This gives way for a greedy device grabbing job scheduler, yet respecting priorities (if available).

To post a comment you must log in.
Revision history for this message
Neil Williams (codehelp) wrote :

This reflects the change from getBoardList to getJobList. It's one of the areas which needs testing with single-node and multi-node jobs.

review: Approve
253. By Neil Williams

Senthil Kumaran 2013-06-27 Get job from queue based on priority and submit_time. This gives way for
a greedy device grabbing job scheduler, yet respecting priorities (if available).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lava_scheduler_daemon/dbjobsource.py'
2--- lava_scheduler_daemon/dbjobsource.py 2013-06-27 09:23:55 +0000
3+++ lava_scheduler_daemon/dbjobsource.py 2013-06-27 11:31:29 +0000
4@@ -139,7 +139,8 @@
5 return job
6
7 def getJobList_impl(self):
8- jobs = TestJob.objects.all().filter(status=TestJob.SUBMITTED)
9+ jobs = TestJob.objects.all().filter(
10+ status=TestJob.SUBMITTED).order_by('-priority', 'submit_time')
11 job_list = []
12 devices = None
13

Subscribers

People subscribed via source and target branches

to status/vote changes: