groupme / pace

Resque-compatible reactor
MIT License
58 stars 3 forks source link

Tag log lines with [pace] and start the fetch loop more reliably #7

Closed daveyeu closed 12 years ago

daveyeu commented 12 years ago

This was prompted by the recent failure of Pace to restart the fetch loop. I'm still not exactly sure why that happened, but I suspect Redis. In order to sort out the issue more easily next time, I'm doping all the log lines with the "[pace]" tag so they stand out a little more clearly.

Also, this patch attempts to make the initial loop setup more reliable by attaching it to a callback on the EM::Hiredis client.