Error management: if a lua "call" fails, the system may be left inconsistent. i.e if lpush fails, the bucket have been already deleted. Move "del" as the last operation (Lua execution is atomic, so no new task will appear in the bucket)