Sha256: 5451bdce595fe9e79a171f700ade37f3e8a2761e30238f7d0933dfed520dc19c

Contents?: true

Size: 191 Bytes

Versions: 6

Compression:

Stored size: 191 Bytes

Contents

class ExampleJob
  attr_accessor :log

  def perform(data = {})
    response_data = {foo: 'bar'}
    log.debug("in example worker with data: #{data}")
    sleep 2
    response_data
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
worker-army-0.5.0 lib/worker_army/example_job.rb
worker-army-0.4.1 lib/worker_army/example_job.rb
worker-army-0.4.0 lib/worker_army/example_job.rb
worker-army-0.3.2 lib/worker_army/example_job.rb
worker-army-0.3.1 lib/worker_army/example_job.rb
worker-army-0.3.0 lib/worker_army/example_job.rb