require 'hat/middlewares/json' require 'hat/features/durable' module Examples class Durable < Hat::Worker include Hat::Middlewares::Worker::JSON include Hat::Features::Durable queue 'hat.direct.durable' def perform(_, _, payload) puts payload end end end