class Toro::Middleware::Server::Properties

Public Instance Methods

call(job, worker) { || ... } click to toggle source
# File lib/toro/middleware/server/properties.rb, line 5
def call(job, worker)
  result = yield
  if result.is_a?(Hash) && result[:job_properties].is_a?(Hash)
    job.set_properties(result[:job_properties])
    job.save
  end
end