                     @redis.set id, job
                     @redis.rpush queue, id, (err, status) ->
                         respond response, { success: status, uuid: id }
-                        distributeJobs(match[1])
+                        distributeJobs(queue)
 
             DELETE: (match, response) =>
-                queue = Q_PREFIX + match[1]
+                queue = match[1]
                 @redis.del queue, (err, status) ->
                     respond response, {
                         success: status,


        route "\/queue\/(.+?)\/?$", {
            GET: (match, response) =>
                queue = Q_PREFIX + match[1]
                @redis.lrange queue, 0, -1, (err, messages) ->
                    respond response, {
                        success: true,

                    }

            POST: (match, response, bag) =>
                queue = match[1]
                id = uuidFactory.generate()
                job = JSON.stringify {
                    uuid: id,
