View Source Honeycomb.Bee (honeycomb v0.1.1)

Task carrier.

Summary

Types

@type run() :: (-> any()) | {module(), atom(), [any()]}
@type status() :: :pending | :running | :done | :raised | :terminated | :canceled
@type t() :: %Honeycomb.Bee{
  caller: pid(),
  create_at: DateTime.t(),
  expect_run_at: DateTime.t(),
  name: atom() | String.t(),
  result: any(),
  retry: non_neg_integer(),
  run: run(),
  stateless: boolean(),
  status: status(),
  task_pid: pid(),
  timer: :timer.tref(),
  work_end_at: DateTime.t(),
  work_start_at: DateTime.t()
}