Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: staugaard/resque-multi-job-forks
base: master
...
head fork: basecamp/resque-multi-job-forks
compare: master
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Feb 01, 2011
@mguterl mguterl done_working is called inside of the work loop, which removes the wor…
…ker from

redis.  this causes workers to disappear after the first fork
93b4f6c
Commits on Mar 23, 2011
@CodeMonkeyKevin CodeMonkeyKevin bumped gemspec to resque 1.15 912278a
View
7 lib/resque-multi-job-forks.rb
@@ -22,6 +22,13 @@ def shutdown_with_multi_job_forks
end
alias_method :shutdown_without_multi_job_forks, :shutdown?
alias_method :shutdown?, :shutdown_with_multi_job_forks
+
+ def working_on_with_worker_registration(job)
+ register_worker
+ working_on_without_worker_registration(job)
+ end
+ alias_method :working_on_without_worker_registration, :working_on
+ alias_method :working_on, :working_on_with_worker_registration
end
def fork_hijacked?
View
2  resque-multi-job-forks.gemspec
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
s.summary = "Have your resque workers process more that one job"
s.description = "When your resque jobs are frequent and fast, the overhead of forking and running your after_fork might get too big."
- s.add_runtime_dependency("resque", "~> 1.10.0")
+ s.add_runtime_dependency("resque", "~> 1.15.0")
s.add_runtime_dependency("json")
s.add_development_dependency("rake")

No commit comments for this range

Something went wrong with that request. Please try again.