resque/resque-scheduler — pull request #397 by bugant (2014-04-22 13:42:18+00:00)
Title: update_schedule race condition

As noted by @rychoo2 in issue #230, the memoizing of Resque.schedule was causing a race condition. The easy solution was to refresh the hash of all the schedueles for each of the job handled in the update_schedule cycle.

Thank you very much to @rychoo2 for submitting a test that reproduces the issue in #396: that test has been included in this PR too.