nesquena / backburner

Simple and reliable beanstalkd job queue for ruby
http://nesquena.github.com/backburner
MIT License
428 stars 68 forks source link

enqueue responds with useful data #116

Closed itsmikeq closed 8 years ago

itsmikeq commented 8 years ago

This PR has the #enqueue method respond with a hash from beaneater. This allows for storing the ID for use later.

The #invoke_hook_events call now returns nil instead of boolean but anyone using if async.method... wont be harmed by the change (i suppose they would be if they're doing something like == true).
tests pass.

nesquena commented 8 years ago

Thanks!