Module Typhoeus::Hydra::Queueable
In: lib/typhoeus/hydra/queueable.rb

This module handles the request queueing on hydra.

@api private

Methods

Public Instance methods

Abort the current hydra run as good as possible. This means that it only clears the queued requests and can‘t do anything about already running requests.

@example Abort hydra.

  hydra.abort

Removes a request from queued_requests and adds it to the hydra in order to be performed next.

@example Dequeue request.

  hydra.dequeue

@since 0.6.4

Removes requests from queued_requests and adds them to the hydra until max_concurrency is reached.

@example Dequeue requests.

  hydra.dequeue_many

@since 0.6.8

Enqueues a request in order to be performed by the hydra. This can even be done while the hydra is running. Also sets hydra on request.

@example Queue request.

  hydra.queue(request)

Pushes a request to the front of the queue, to be performed by the hydra. Also sets hydra on request

@example Queue reques.

  hydra.queue_front(request)

Return the queued requests.

@example Return queued requests.

  hydra.queued_requests

@return [ Array<Typhoeus::Request> ] The queued requests.

[Validate]