spawn-ts API reference - v0.6.0
    Preparing search index...

    Function findOrphans

    • Find managed instances that should be dead but aren't: state running/pending, a real TTL deadline, and now beyond that deadline + grace. Instances with no TTL are never orphans (nothing promised they'd self-terminate). graceMs overrides the default for testing/tuning.

      Parameters

      • instances: ManagedInstance[]
      • nowMs: number
      • graceMs: number = ORPHAN_GRACE_MS

      Returns Orphan[]