examples/sandwich_client.rb in cloudist-0.1.1 vs examples/sandwich_client.rb in cloudist-0.1.2
- old
+ new
@@ -17,12 +17,17 @@
Cloudist.start {
log.info("Dispatching sandwich making job...")
enqueue('make.sandwich', {:bread => 'white'})
+ # enqueue('make.sandwich', {:bread => 'brown'})
# Listen to all sandwich jobs
listen('make.sandwich') {
+ everything {
+ Cloudist.log.info("Job ID: #{job_id}")
+ }
+
progress {
Cloudist.log.info("Progress: #{data[:progress]}")
}
event('started') {