Jido.Composer.Directive.CheckpointAndStop (Jido Composer v0.6.0)

Copy Markdown View Source

Directive for hibernating a child agent and signaling the parent.

When executed by the runtime:

  1. Calls Jido.Persist.hibernate/2 with the checkpoint data
  2. Emits "composer.child.hibernated" to the parent agent
  3. Stops the child process

Summary

Types

t()

@type t() :: %Jido.Composer.Directive.CheckpointAndStop{
  checkpoint_data: map() | nil,
  storage_config: map() | nil,
  suspension: map()
}