Skip to content

initial commit of threading worker#120

Open
geoffroymontel wants to merge 1 commit into
nesquena:masterfrom
geoffroymontel:threading_worker
Open

initial commit of threading worker#120
geoffroymontel wants to merge 1 commit into
nesquena:masterfrom
geoffroymontel:threading_worker

Conversation

@geoffroymontel
Copy link
Copy Markdown

I could not make the threads_on_fork worker work with backburner 1.3 (see #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 ...

@nesquena
Copy link
Copy Markdown
Owner

nesquena commented Apr 2, 2016

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

@geoffroymontel
Copy link
Copy Markdown
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants