Skip to content

Instantly share code, notes, and snippets.

@pietern
Created November 5, 2009 15:03
Show Gist options
  • Save pietern/227095 to your computer and use it in GitHub Desktop.
Save pietern/227095 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment