Skip to content

Interface: ProcessSupervisorOptions

Retry, shutdown, and liveness policy for one supervised child process.

optional healthCheckFailures?: number


optional healthCheckGraceMs?: number


optional healthCheckIntervalMs?: number


optional isHealthy?: () => boolean | Promise<boolean>

Optional public liveness probe. When it returns false while the child is still running, the supervisor kills the child so the forever-loop restarts it. Used by portr to recover from an edge that dropped the subdomain registration while the local process kept running (see x-portr-error-reason: unregistered-subdomain).

boolean | Promise<boolean>


logger: Logger


name: string


optional retryDelaysMs?: readonly number[]


start: () => ManagedProcess | Promise<ManagedProcess>

ManagedProcess | Promise<ManagedProcess>