Created
April 14, 2017 22:00
-
-
Save bleonard/9678fc554c74b40c8de7a6473a90c066 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HardWorker | |
include Sidekiq::Worker | |
def perform(name, count) | |
# do something with name, count | |
end | |
end | |
# enqueue | |
HardWorker.perform_async('bob', 5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment