Commits on Sep 7, 2012
  1. Merge remote-tracking branch 'raykrueger/fix_job_failure_hook_duplica…

    skalnik committed Sep 7, 2012
Commits on Feb 15, 2012
  1. Revert "kill keepalive thread in child process"

    wuputah committed Feb 15, 2012
    This reverts commit 443899b.
Commits on Jan 19, 2012
  1. Fix a race condition encountered with pruning dead workers

    raykrueger committed Jan 19, 2012
    On a single machine, starting multiple workers at the same time would cause the same job to have
    it's failure hook called multiple times. In this patch I'm only calling job.Fail when we've
    successfully removed the worker from the :workers set.
    Effectively this synchronizes the job fail
    on the first worker to successfully remove itself from the set.
Commits on Jan 10, 2012
Commits on Nov 26, 2011
  1. Fix for job failure plugins being run twice

    raykrueger committed Nov 26, 2011
    After adding failure_hook handling to the method, which is called by
    the worker upon failure, it is no longer necessary for the Job to call it's own
    failure hooks. Currently the failure hooks are being called twice. Once by the
    job itself, and then the error is rethrown, where the worker catches it and calls where the hooks are run again.
    This patch simply removes the large begin/rescue block inside of the job.
  2. Correct the order of assert_equal when using arrays

    raykrueger committed Nov 26, 2011
    Assert_equal should be in the order expected, actual. Each instance in this test was backwards
    when using an array. Wich caused the "exected blah, but was blah" output to be backwards.
Commits on Nov 8, 2011
  1. Merge pull request #449 from elisehuard/master

    defunkt committed Nov 8, 2011
    trailing slashes at the end of resque servers' URLs
  2. allow trailing slashes at the end of all pages

    Elise Huard
    Elise Huard committed Nov 8, 2011
Commits on Oct 21, 2011
  1. Allow `*` to appear anywhere in queue list.

    tapajos authored and defunkt committed Sep 28, 2011
    Fixes #405
    Fixes #407
  2. Wait for child with specific PID to avoid waiting on other zombie pro…

    Jacobkg authored and defunkt committed Oct 19, 2011
    …cesses (e.g. NewRelic RPM) which may have forked earlier.
  3. Fixed typo in demo README

    NielsIA authored and defunkt committed Oct 18, 2011
  4. Use Sinatra's public_folder if it exists

    defunkt committed Oct 21, 2011
    Fixes #421. Fixes #420.
  5. Assign the job's worker before calling `before_fork`

    quirkey authored and defunkt committed Oct 4, 2011
    Useful for inspecting the jobs woker in the hook
Commits on Oct 14, 2011
Commits on Oct 13, 2011
  1. refactor last_prune_expire

    wuputah authored and hone committed Oct 13, 2011
Commits on Oct 12, 2011
  1. use methods instead of constants

    hone committed Oct 12, 2011
Commits on Oct 10, 2011
  1. fix build for 1.9.2

    hone authored and defunkt committed Oct 4, 2011
Commits on Oct 9, 2011
Commits on Oct 8, 2011
  1. simplify prune logic

    wuputah committed Oct 8, 2011
  2. avoid some Time.to_s calls

    wuputah committed Oct 8, 2011
Commits on Oct 6, 2011
  1. move prune_dead_workers into a thread

    hone committed Oct 6, 2011
    Moving this out of resque web so we don't need to load all the job
    classes into the global namespace to run the web component. This uses a
    key "last_prune" in redis.
  2. make keepalive thread have a longer interval

    hone committed Oct 6, 2011
    This thread should have a longer interval than the actual work check.
    The expire should be set so we have ample time to set the next expire
    before it's viewed as dead. I've gone with at least two times in case we
    miss a heartbeat.
Commits on Oct 5, 2011
  1. use smaller expire window

    hone committed Oct 5, 2011
  2. log remaining ttl

    hone committed Oct 5, 2011