pietern (owner)

Forks

Revisions

gist: 227095 Download_button fork
public
Public Clone URL: git://gist.github.com/227095.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
class SomeJob
  include Resque::Mixin::Status
 
  def self.perform(*args)
    job_status "foo"
  end
end
 
# versus
 
class SomeJob
  @monitor = true
 
  def self.perform(*args)
    Resque.current_job.status = "foo"
  end
end