Question

I've read though the Backburner Tutorial but it kind of glosses over what workers are exactly, and it seems as though god is used for production environments, but all the other examples just show Backburner.work being used, which doesn't process asynchronously. So I can't figure how to do process jobs in my queue while I'm using WEBrick in development mode.

Was it helpful?

Solution

I will update the tutorial but the simplest way to process tasks is to just use the rake task:

rake backburner:work

This will process tasks as they come in right in your console. If you have dynamic queues or just want to process one queue you can specify the queues here:

QUEUES=newsletter-sender,push-message rake backburner:work

That should work in development.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top