Skip to content

Commit

Permalink
Merge pull request #47 from matrinox/master
Browse files Browse the repository at this point in the history
Fix example to log object
  • Loading branch information
cryo28 committed Mar 1, 2017
2 parents bd47d38 + c0efb85 commit 5c5d8d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -63,9 +63,9 @@ class MyWorker

def perform(arg1, arg2)
objects = Array.new(200) { 'some_object_to_process' }
self.total= objects.count
self.total = objects.count
objects.each_with_index do |object, index|
at(index, "Processing object #{index}")
at(index, "Processing object #{object}")
object.process!
end
end
Expand All @@ -92,7 +92,7 @@ class MyWorker

def perform(arg1, arg2)
objects = Array.new(5) { |i| i }
self.total= objects.count
self.total = objects.count
result = objects.inject([]) do |accum, object|
accum << "result #{object}"
accum
Expand All @@ -108,7 +108,7 @@ Then a client can fetch the result payload

```ruby
container = SidekiqStatus::Container.load(jid)
container.status # => 'complete'
container.status # => 'complete'
container.payload # => ["result 0", "result 1", "result 2", "result 3", "result 4"]
```

Expand Down

0 comments on commit 5c5d8d2

Please sign in to comment.