lib/qu/backend/mongo.rb
def push(payload)
        payload.id = BSON::ObjectId.new
        with_connection_retries do
          jobs(payload.queue).insert(payload_attributes(payload))
        end
        payload
      end
# Number of times to retry connection on connection failure (default: 5)
Number of times to retry connection on connection failure (default: 5)
Number of times to retry connection on connection failure ( default : 5 )
def push(payload)
        payload.id = BSON::ObjectId.new
        with_connection_retries do
          jobs(payload.queue).insert(payload_attributes(payload))
        end
        payload
      end
def push ( payload ) payload . id = BSON :: ObjectId . new with_connection_retries do jobs ( payload . queue ) . insert ( payload_attributes ( payload ) ) end payload end
Number of times to retry connection on connection failure (default: 5)
Number of times to retry connection on connection failure ( default : 5 )
payload