Skip to content
Sursa Developers

Objects

JobStreamError

The last event of the stream when the Sursa instance stops for an update. The stream closes normally, and the jobs are not affected. It arrives without id:: the client reconnects with the same Last-Event-ID (EventSource does this on its own after retry: 3000), and the snapshot is extended with everything that changed while the connection was down.

Fields

  • type"error"required
  • codestringrequired

    Allowed values: server_restart

  • retrybooleanrequired

    Always true: only the stream was interrupted, and reconnecting is safe.

  • messagestringrequired

Part of

JobStreamEvent