Run Internals

Attach Run Events

Changed on

Opens an ordered server-sent event stream of the run's stream, replaying committed items and continuing with live ones while the run remains active. Each data: frame is one RunStreamItem. The stream starts after after (the last stream_seq the client saw; 0 replays the whole run; the next unseen item when omitted). It ends once the run is no longer active and every committed item has been sent. A reconnecting client passes its last stream_seq as after and deduplicates by id.

get/api/v1/runs/{id}/attach

Request

  • The document declares no server URL.
  • Auth
    • HTTP bearer
    • or API key in cookie __fabro_session

Path parameters

idstring required

Unique run identifier (ULID).

Query parameters

afterinteger

Run stream cursor for a Petri run: the last stream_seq the client saw, exclusive. 0 starts at the first item.

Response

Server-sent event stream

Changes

    • warning

      deleted the query request parameter since_seq

    • info

      added the new optional query request parameter after

    • info

      added the optional property // to the response with the status