Skip to main content

WaitUntilTimeFromHeader

Extract time at which we can retry the request from response header and wait for the difference between now and that time.

  • type: object
  • required: ["type","header"]

type​

  • Required: Yes
  • type: string
  • enum: ["WaitUntilTimeFromHeader"]

The name of the response header defining how long to wait before retrying.

  • Required: Yes
  • type: string
  • Available variables: config

Examples:

wait_time

min_wait​

Minimum time to wait before retrying.

  • Required: No
  • Available variables: config

Examples:

10
60
  • anyOf:

    • type: number
  • anyOf:

    • type: string

regex​

Optional regex to apply on the header to extract its value. The regex should define a capture group defining the wait time.

  • Required: No
  • type: string
  • Available variables: config

Examples:

([-+]?\d+)

max_waiting_time_in_seconds​

Stop the stream instead of waiting, when the wait this strategy computes is greater than or equal to this value. The comparison is against the computed wait rather than the raw header, since the header holds an absolute timestamp, and it is applied after min_wait, so a cap below the floor still wins -- including for the fallback where the header is absent and min_wait supplies the wait on its own. Can be a hardcoded number, or a string interpolated from the connector config so that the bound can be changed without a connector release. A value of 0 means never wait. Not evaluated when a rate-limited retry can rotate to another credential with quota; any other retryable error still consults this strategy.

  • Required: No
  • Available variables: config

Examples:

3600
{{ config['max_waiting_time'] * 60 }}
  • anyOf:

    • type: number
  • anyOf:

    • type: string

$parameters​

  • Required: No
  • type: object