TaskBunny v0.1.0-rc.2 TaskBunny.SampleJob

Summary

Functions

Callback to process a job

Functions

perform(payload)

Callback to process a job.

It can take any type of argument as long as it can be serialized with Poison, but we recommend you to use map with string keys for a consistency.

def perform(name) do
  IO.puts name <> ", it's not a preferred way"
end

def perform(%{"name" => name}) do
  IO.puts name <> ", it's a preferred way :)"
end

Callback implementation for TaskBunny.Job.perform/1.