backburner icon indicating copy to clipboard operation
backburner copied to clipboard

initial commit of threading worker

Open geoffroymontel opened this issue 8 years ago • 2 comments

I could not make the threads_on_fork worker work with backburner 1.3 (see https://github.com/nesquena/backburner/issues/118), so I decided to make a very simple Threading worker.

Usage is :

QUEUE=job-one:3,job-two rake backburner:threading:work

to start 3 threads for job-one and 1 thread for job-two.

I tried to write some tests but could not make any relevant one.

Anyway the workers survive a beanstalkd server stop and restart during their lives.

This is my first pull request ever on an open source project so don't hesitate to criticize ...

geoffroymontel avatar Mar 28 '16 17:03 geoffroymontel

Thanks for submitting this. If someone else verify that this worker runs as expected, I am happy to merge this in.

nesquena avatar Apr 02 '16 02:04 nesquena

Thanks Nathan ! Maybe @ShadowBelmolve or @danielfarrell may be interested.

geoffroymontel avatar Apr 02 '16 09:04 geoffroymontel