Sha256: 74f0d93b0c14033251ca926c76a172e030e664bc86cdb0af5b12cb917ff801ac
Contents?: true
Size: 651 Bytes
Versions: 6
Compression:
Stored size: 651 Bytes
Contents
#begin # require File.join(File.dirname(__FILE__), '../lib/simple_worker') #rescue Exception => ex # puts ex.message # require 'simple_worker' #end # Bump for new checksum. class TestWorker < SimpleWorker::Base attr_accessor :s3_key, :times def run log 'running the test worker for moi '.upcase log 's3_key instance_variable = ' + self.s3_key.to_s @times.times do |i| log 'running at ' + i.to_s sleep 1 set_progress(:percent=> (i / @times * 100)) end end def set_complete(params=nil) log 'SET COMPLETE YAY!' + params[:task_set_id] end end
Version data entries
6 entries across 6 versions & 1 rubygems