pietern (owner)

Revisions

gist: 227166 Download_button fork
public
Public Clone URL: git://gist.github.com/227166.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)