xqueue allows passing field priority to upgrade method but totally ignores it when consumer takes tasks.
The idea is to give an opportunity for developers to upgrade Tarantool space to priority queue adding field priority into schema of space and use status_priority_id index instead of status_id for take method.
xqueue.upgrade must validate that index status_priority_id created correctly if priority option is given.
priority supposed to be an integer number. The greater priority the later task will be taken from the queue.
xqueue
allows passing fieldpriority
toupgrade
method but totally ignores it when consumer takes tasks.The idea is to give an opportunity for developers to upgrade Tarantool space to priority queue adding field
priority
into schema of space and usestatus_priority_id
index instead ofstatus_id
for take method.xqueue.upgrade
must validate that indexstatus_priority_id
created correctly ifpriority
option is given.priority
supposed to be an integer number. The greater priority the later task will be taken from the queue.