Runbox.RunContext (runbox v7.0.1)

Structure holding Runbox context of running slave node.

Link to this section Summary

Types

t()

Context of running run slave node.

Link to this section Types

@type t() :: %Runbox.RunContext{
  master_node: node() | nil,
  node: node() | nil,
  save_entity_mf: {module(), atom()} | nil,
  sup_pid: pid()
}

Context of running run slave node.

  • :master_node - master node of run
  • :node - slave node of run
  • :sup_pid - pid of supervisor (running on slave) for run components running on slave
  • :save_entity_mf - callback definition (module and functin name) for saving entity state. Function is always called with 2 params: entity (Runbox.StateStore.Entity.t/0) and savepoint timestamp.