drfeelngood / resque-batched-job

Resque plugin that understands individual jobs can belong to something bigger than themselves
https://rubygems.org/gems/resque-batched-job
MIT License
49 stars 23 forks source link

batch key locking #5

Closed drfeelngood closed 12 years ago

drfeelngood commented 12 years ago

When modifying batch data, we need to implement key locking to prevent race conditions.

drfeelngood commented 12 years ago

Im implementing a Redis SETNX locking strategy.

drfeelngood commented 12 years ago

The mutex method solves this issue. Currently its on the "lists" branch. I'll probably release 1.0 with the updates this weekend.