@pwngh/economy-lab
    Preparing search index...

    Function detectStuckSagas

    • Walks the saga listing and returns one finding per saga that is non-terminal (any state other than SETTLED or FAILED) and has not been updated for at least ageMs. Returns an empty array when nothing qualifies. Stateless: the same stuck saga is found again on every poll until it progresses.

      Parameters

      • sagas: { list(): AsyncIterable<Saga> }
      • now: number
      • options: { ageMs: number }

      Returns Promise<readonly StuckSagaFinding[]>