tarantool / queue

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

Add to readme appropriate grant setup. #59

Closed funny-falcon closed 7 years ago

funny-falcon commented 7 years ago

To test queue I have to setup this weird set of grants and functions: https://github.com/tarantool/go-tarantool/blob/d26edc79c694c2672a6541f6a9869325d61b2427/queue/config.lua

Note, that "execute universe" do not work without function creation for each action on particular queue.

Could you provide clean example, how to setup grants for unprivileged user (ie not "read,write,execute universe"), so it could use particular queue? Or provide helper function "queue.tube.tubename:grant(user)"?

Probably, right way could be to add functional interface which complements objective one:

queue.tube.tubename:put(data, cfg) => queue.put("tubename", data, cfg)
queue.tube.tubename:take() => queue.take("tubename")

But I'm not sure.