Is the workflow runs array chronologically sorted?

The List workflow runs API endpoint returns an array of workflow runs for a specific workflow. Are these workflow runs guaranteed to be sorted according to the order in which they were executed (i.e. based on the run_number field wit the newest workflow run first)?

In example request, the workflow runs are indeed sorted (newest first), but I wonder if this is a guaranteed behaviour.

Hey @weibeld :wave:

Returns from this endpoint should be sorted by the created_at value, not necessarily run_number.

Unsure if that simple answer is enough to suit your needs, but if you have feedback, please consider submitting through this form:

…where it will be reviewed directly by our PMs for consideration.

If you have any followup questions, please let us know and we’ll do our best! :bow:

1 Like