tarantool / queue

Create task queues, add and take jobs, monitor failed tasks
Other
237 stars 52 forks source link

create_tube if not exists option #42

Closed nekufa closed 7 years ago

nekufa commented 7 years ago

If not exists flag is ignored.

It's easy to reproduce the issue. Simply run this code twice: queue.create_tube('web_push', 'fifo', {temporary = false, if_not_exists = true})

Behind the scenes drivers are creating their own create_space options, so if_not_exists flag is ignored. https://github.com/tarantool/queue/blob/master/queue/abstract/driver/fifo.lua#L8-L13