View Source Runbox.Runtime.StateLoader behaviour (runbox v21.2.0)
Module handles run state load/initialization.
Summary
Functions
Fetches state into run start recipe.
Callbacks
@callback init_new_state( Runbox.Scenario.StartParams.t(), instance_ctx :: map(), start_recipe :: [] ) :: {:ok, start_recipe :: []} | {:error, :no_savepoint}
@callback load_existing_state( Runbox.Scenario.StartParams.t(), instance_ctx :: map(), start_recipe :: [] ) :: {:ok, start_recipe :: []} | {:error, :no_savepoint}
Functions
@spec load(Runbox.Scenario.StartParams.t(), map(), start_recipe :: []) :: {:ok, start_recipe :: []} | {:error, :no_savepoint}
Fetches state into run start recipe.