View Source Avalanche.Steps.Poll (Avalanche v0.12.2)

A custom Req pipeline step to poll for the completion of an asynchronous or long (> 45 seconds) query.

Link to this section Summary

Functions

Polls for the completion of a statement execution if async is false.

Link to this section Functions

Link to this function

attach(request, bool, options)

View Source

Polls for the completion of a statement execution if async is false.

  • :request - the request

  • :disable - set to true to disable polling for this request

options

Options

  • :delay - sleep this number of milliseconds between attempts, defaults to 1000

  • :max_attempts - maximum number of poll attempts, defaults to 5 (for a total of 5 requests to the server, including the initial one.)