AshOban.ActorPersister behaviour (ash_oban v0.4.5)

View Source

A behaviour for storing and retrieving an actor from oban job arguments

Summary

Types

actor()

@type actor() :: any()

actor_json()

@type actor_json() :: any()

Callbacks

lookup(actor_json)

@callback lookup(actor_json :: actor_json() | nil) ::
  {:ok, actor() | nil} | {:error, Ash.Error.t()}

store(actor)

@callback store(actor :: actor()) :: actor_json :: actor_json()