Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Supervisor API

Supervisor

fauxtp.supervisor.base.Supervisor

Base supervisor class. Subclass and define child_specs() and strategy.

Attributes

Methods to Override

def child_specs(self) -> list[ChildSpec]

Override to define the list of children to be supervised.

Methods

def child(self, child_id: str) -> PID | None

Get a child’s PID by its unique ID.


ChildSpec

fauxtp.supervisor.child_spec.ChildSpec

Specification for a supervised child actor.

Attributes


Enums

RestartStrategy

fauxtp.supervisor.child_spec.RestartStrategy

RestartType

fauxtp.supervisor.child_spec.RestartType