# frozen_string_literal: true module Cloudtasker module Batch module Middleware # Server middleware, invoked when jobs are executed class Server def call(worker) Job.for(worker).execute { yield } end end end end end