workerpool: Add method to change task's priority
authorMichael Hanselmann <hansmi@google.com>
Tue, 30 Oct 2012 15:44:02 +0000 (16:44 +0100)
committerMichael Hanselmann <hansmi@google.com>
Tue, 13 Nov 2012 19:20:15 +0000 (20:20 +0100)
commit9a2564e72958362b364f5129f470757946f0a6b6
treeaeab8d7a6e3b82dd89b91a99dac16ac19d611003
parent125b74b274849e717637438c672bbb17a43b5c58
workerpool: Add method to change task's priority

Using the task ID a pending task's priority can be changed. This will be
used to change the priority of jobs in the workerpool.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Bernardo Dal Seno <bdalseno@google.com>
lib/workerpool.py
test/ganeti.workerpool_unittest.py