View Source EventStreamex (EventStreamex v1.4.2)

The event streaming system supervisor.

This supervisor is the one started by EventStreamex.Orchestrator when the current node is the master node.

This supervisor is responsible for starting the whole system.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Link to this function

child_spec(init_arg)

View Source (since 1.0.0)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

restart_scheduler()

View Source (since 1.0.0)
@spec restart_scheduler() ::
  {:error, any()} | {:ok, :undefined | pid()} | {:ok, :undefined | pid(), any()}

Restarts the EventStreamex.Operators.Scheduler.

Should only be used when the Scheduler crashes because of an operator that fails after several restarts.

Because this failure is critical, the sheduler will fail and must be restarted manually using this function when the error is solved with the operator.

When the scheduler is restarted, the failed operator will be restarted and then, the rest of the events queue will be executed.