Skip to content

Frontmatter ​

The frontmatter is a YAML block between two --- lines at the start of a .hurl file. All fields are optional.

Fields ​

FieldTypeDefaultDescription
idstringThe file name without .hurlThe ID of the node. It must not contain spaces.
depslist[]The IDs of the nodes that must pass first. An item template: alias makes an alias.
outputslist of strings[]The captures that the node gives to its dependents.
priorityinteger0The sequence in a wave. A higher value runs first.
argslist[]Hurl flags for this node.
known_failureslist[]The failures that the node can tolerate.
retrymapNo retryThe retry policy of the node.

args ​

ItemHurl flag
verbose--verbose
v-v
connect-timeout: 30--connect-timeout 30
--insecure--insecure, with no change

known_failures ​

Each entry needs name, reason and one or more signature fields. All signature fields that you set must match.

FieldTypeDescription
namestringThe name in the console, the summary and the CTRF tags. It must be unique in the node.
reasonstringWhy the failure is acceptable.
untildateAfter this date, the entry does not match. Optional.
linkstringWhere the failure has documentation. Optional.
statusintegerThe status code of the last response.
headermapname and pattern. The name is not case-sensitive. The pattern is a regular expression.
bodystringA regular expression for the body of the last response.
stderrstringA regular expression for the error output of Hurl. It can match when no response arrived.

The last response is the last call that Hurl recorded for the node. With the Hurl option [Options] retry, it is the last attempt.

retry ​

FieldTypeDefaultDescription
attemptsinteger1The total number of attempts, with the first attempt. 1 disables the retry.
backoff_msinteger1000The base wait in milliseconds.
max_backoff_msinteger30000The maximum wait, also for Retry-After.
multipliernumber2The growth of the wait after each attempt. It must be 1 or more.
jitterfull or nonefullfull selects a random wait from 0 to the limit. none waits the full limit.
respect_retry_afterbooleantrueUse the Retry-After header of the response.
whenmap or listEach failureThe signatures that start a retry. Each item takes status, header, body and stderr.

hurl-orchestra validates all fields before the run. An unknown key in retry stops the run.