Permalink
Commits on Oct 2, 2012
  1. Fix will_fork? handling for before_fork hooks

    tarcieri committed with steveklabnik Oct 1, 2012
    The intended behavior of before_fork, according to a comment:
    
    lib/resque/worker.rb
    258:      # Only run before_fork hooks if we're actually going to fork
    
    If this is the case, then this behavior was actually broken on e.g.
    JRuby, as there was no guard on the invocation of the hook.
    
    This adds that guard, and cleans up the tests to check will_fork? before
    making assertions.
  2. Merge pull request #712 from evanbeard/patch-1

    steveklabnik committed Oct 2, 2012
    README.md: Fixed example initializer path
Commits on Oct 1, 2012
  1. fix the build

    steveklabnik committed Oct 1, 2012
  2. test -> it

    steveklabnik committed Oct 1, 2012
  3. Only call after_fork if will_fork? is true

    tarcieri committed with steveklabnik Sep 25, 2012
    This change provides consistent forking semantics across JRuby running
    in both 1.8 and 1.9 mode and resolves the current test failure.
    
    Conflicts:
    
    	test/worker_test.rb
  4. Merge pull request #672 from kjwierenga/feature/conditional_fork_hooks

    steveklabnik committed Sep 24, 2012
    Don't invoke :before_fork and :after_fork hooks when not forking - fixes fd leak when used with NewRelic
    Conflicts:
    
    	lib/resque/worker.rb
    	test/worker_test.rb
  5. update version to 1.22.0

    hone committed with steveklabnik Aug 21, 2012
  6. update changelog

    hone committed with steveklabnik Aug 21, 2012
    Conflicts:
    
    	HISTORY.md
Commits on Sep 29, 2012
  1. Merge pull request #705 from AJamesPhillips/master

    steveklabnik committed Sep 29, 2012
    Minor css change
Commits on Sep 27, 2012
  1. Memoize hook names in plugins.

    steveklabnik committed Sep 27, 2012
    We don't want to call #methods a zillion times. That's bad.
    
    Fixes #508.
  2. validate job before putting it on a queue.

    steveklabnik committed Sep 27, 2012
    This fixes #479
  3. Merge pull request #703 from KensoDev/feature/requeue_and_remove

    steveklabnik committed Sep 27, 2012
    Requeue and remove
  4. Merge pull request #467 from dolores/bug/dont_display_jobs_that_finished

    steveklabnik committed Sep 27, 2012
    Fix a display issue when a worker's job is empty and it tries to sort on nil
  5. remove ** from log messages.

    steveklabnik committed Sep 27, 2012
    Fixes #385.
  6. update constantize to latest.

    steveklabnik committed Sep 27, 2012
    Taken from Rails master at 991cf78584
  7. Clean up whitespace.

    steveklabnik committed Sep 27, 2012
    Hate that trailing stuff.
  8. Merge pull request #702 from marten/update-readme-wrt-rails-root-env

    hone committed Sep 27, 2012
    update readme for Rails.root/Rails.env
Commits on Sep 25, 2012
  1. Merge pull request #695 from panthomakos/pause-hooks

    steveklabnik committed Sep 25, 2012
    Added missing tests and pause attr_writers.
  2. Merge pull request #694 from panthomakos/before-enqueue-test-fix

    steveklabnik committed Sep 25, 2012
    Fix test ordering failures.
  3. Fix test ordering failures.

    panthomakos committed Sep 25, 2012
    The `:jobs` queue needs to be cleared before these tests because they
    assert on the size of the `:jobs` queue. In some test orderings these
    examples would fail.
  4. Merge pull request #692 from panthomakos/updated-hooks

    steveklabnik committed Sep 25, 2012
    Enable registering of multiple Resque hooks.
  5. Enable registering of multiple Resque hooks.

    panthomakos committed Mar 7, 2012
    Calling `Resque.before_fork {}` would register a hook, but if any other gem,
    plugin or file also tried to set a before fork hook, the original would be
    replaced by the new hook. An example of this is the rpm_contrib gem which allows
    New Relic instrumentation of Resque jobs. The gem defines a `before_first_fork`
    hook and an `after_fork` hook. This results in conflicts if a user wants to
    define their own hooks of the same type.
    
    This fix allows multiple hooks to be registered and executes all of them
    instead of simply executing the last registered hook. I've consolidated
    the related tests into a single file and added some tests to ensure that the
    hooks are called, called at the right time, and that multiple hooks can be
    registered.
  6. Merge pull request #688 from postmodern/windows

    steveklabnik committed Sep 25, 2012
    **Always** split `command` output using $/ for Windows.
  7. Merge pull request #687 from 37signals/retry_reconnection

    steveklabnik committed Sep 25, 2012
    Worker tries to reconnect to Redis up to 3 times with increasing delay before giving up