Sha256: 360ac312b6e97d7d5c4c542c182b45c892b0673c6d1f5c64fde7d9de14c036d1

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

$:.unshift File.dirname(__FILE__) + '/../lib'
require "rubygems"
require "cloudist"

Cloudist.signal_trap!

Cloudist.start {
  log.info("Started Worker")
  
  worker {
    job('make.sandwich') {
      # Fire the started event
      started!
      
      log.info("JOB (#{id}) Make sandwich with #{data[:bread]} bread")
      log.debug(data.inspect)
      
      finished!
    }    
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloudist-0.0.2 examples/sandwich_worker.rb