Created
November 5, 2009 16:18
-
-
Save pietern/227166 to your computer and use it in GitHub Desktop.
This file contains 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 SomeJob | |
include Resque::Mixin::Async | |
include Resque::Mixin::Status | |
def self.some_long_running_method(*args) | |
resque_status :just_started | |
# ... | |
resque_status :halfway | |
# ... | |
resque_status :im_there! | |
end | |
end | |
SomeJob.async(:some_long_running_method, :foo, :bar) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment