View Source Spawn.Cluster.StateHandoff.InvocationSchedulerState (spawn v1.4.0)

This handles invocation scheduler stream

It uses the DeltaCrdt library to handle a distributed state, which is an eventually consistent replicated data type. The module starts a GenServer that monitors nodes in the cluster, and when a new node comes up it sends a "set_neighbours" message to that node's GenServer process with its own DeltaCrdt process ID. This is done to ensure that changes in either node's state are reflected across both.

Summary

Functions

@spec all() :: map()

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

put(invocation, scheduled_to, repeat_in)

View Source