Pick up jobs using ZPOP implementation on Lua