mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix client middleware sample
This commit is contained in:
parent
d40f7cc6af
commit
e087bb3160
1 changed files with 5 additions and 2 deletions
|
@ -49,13 +49,16 @@ module Sidekiq
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# This is an example of a minimal client middleware:
|
# This is an example of a minimal client middleware, note
|
||||||
|
# the method must return the result or the job will not push
|
||||||
|
# to Redis:
|
||||||
#
|
#
|
||||||
# class MyClientHook
|
# class MyClientHook
|
||||||
# def call(worker_class, msg, queue)
|
# def call(worker_class, msg, queue)
|
||||||
# puts "Before push"
|
# puts "Before push"
|
||||||
# yield
|
# result = yield
|
||||||
# puts "After push"
|
# puts "After push"
|
||||||
|
# result
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue