diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-10-07 10:18:17 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-10-07 10:18:17 +0200 |
commit | 1b234a7ee5cdfad43e6b40e15ddaa995af72a030 (patch) | |
tree | 595419c44888472c19af7ca623126a7667b0ce78 | |
parent | a8be4de1addb0728976b7f1e274538b16de6e80a (diff) | |
download | logilab-common-1b234a7ee5cdfad43e6b40e15ddaa995af72a030.tar.gz |
new reverse priority
-rw-r--r-- | tasksqueue.py | 6 |
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): |