summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2009-10-07 10:18:17 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2009-10-07 10:18:17 +0200
commit1b234a7ee5cdfad43e6b40e15ddaa995af72a030 (patch)
tree595419c44888472c19af7ca623126a7667b0ce78
parenta8be4de1addb0728976b7f1e274538b16de6e80a (diff)
downloadlogilab-common-1b234a7ee5cdfad43e6b40e15ddaa995af72a030.tar.gz
new reverse priority
-rw-r--r--tasksqueue.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tasksqueue.py b/tasksqueue.py
index 008a625..0165340 100644
--- a/tasksqueue.py
+++ b/tasksqueue.py
@@ -13,6 +13,12 @@ LOW = 0
MEDIUM = 10
HIGH = 100
+REVERSE_PRIORITY = {
+ 0: 'LOW',
+ 10: 'MEDIUM',
+ 100: 'HIGH'
+ }
+
class PrioritizedTasksQueue(Queue):