1.1.0
Overview
This release introduce:
- "Shared session" machinery. Previously, a connection to a server
was synonym of the queue session. But now multiple connections can work with
tasks in one logical session. - Possibility to work with tasks after reconnect. The queue module now provides
the ability to set thettr
setting for sessions by using
queue.cfg({ ttr = ttr_in_sec})
, which characterizes how long the logical
session will exist after all active connections are closed. So, it is possible
totake()
a task, reconnect to the server, identify to the previous session
(usingqueue.identify()
) and after toack()
the task. - Fix custom driver registration after reboot.
New features
- "Shared sessions" was added to the queue. Previously, a connection to server
was synonym of the queue session. Now the session has a unique UUID (returned
by the "queue.identify()" method), and one session can have many connections.
To connect to an existing session, call "queue.identify(uuid)" with the
previously obtained UUID. - Possibility to work with tasks after reconnect. The queue module now provides
the ability to set thettr
setting for sessions by
queue.cfg({ ttr = ttr_in_sec})
, which characterizes how long the logical
session will exist after all active connections are closed.
Bugfixes
- Fix custom driver registration after reboot. Previously, if a custom driver is
registered after calling box.cfg() it causes a problem when the instance will
be restarted.