Sha256: 1030ca400a55ac0011cfde7d6faf6dca3cf394d95bebe147bb44e0893bd7069d
Contents?: true
Size: 398 Bytes
Versions: 5
Compression:
Stored size: 398 Bytes
Contents
module Cloudist class Worker attr_reader :options def initialize(options) @options = options end def log Cloudist.log end def job(queue_name, &block) q = JobQueue.new(queue_name) q.subscribe do |request| j = Job.new(request.payload.dup) j.instance_eval(&block) j.cleanup end end end end
Version data entries
5 entries across 5 versions & 1 rubygems