defmodule ProcessingLibrary.DummyWorker do @behaviour ProcessingLibrary.Worker def perform(_args) do Process.sleep(Enum.random(1..3) * 1000) if Enum.random([true, false]) do raise "Oops... something went wrong" end end end