technoweenie/coffee-resque — Issue #18: 'jobs' event, running async code
Author: balgarath
Created: 2011-12-20 20:42:33+00:00
State: open

I'm trying to run some code before every job(via the 'job' event), but part of the code I need to run is async. Of course, the block of code finishes running before the async call does - any way we could get a callback inside that event so that I can wait for my async call? Or is there an obvious way to run async code in these that I am missing?