framework icon indicating copy to clipboard operation
framework copied to clipboard

[Proposal] Automatically put queue jobs into different tubes

Open stefanneubig opened this issue 12 years ago • 1 comments

Naturally if you use the queue you would want to use multiple tubes based on the type of job.

Example: Let's say you have two different tasks which you want to be handled asynchronously using Laravel with the beanstalkd driver: SendMail and CompressVideo

Now using the current implementation both tasks would be inserted into the same beanstalk tube ('default'). This is almost never desirable as you don't want to delay your SendMail tasks by cpu heavy CompressVideo tasks. It is always good to have one worker concentrate on one type of job.

I know I can define the queue name on each Queue call. But I think it could be easier than this. Would do you think?

I believe additional tubes don't cost anything.

stefanneubig avatar Dec 11 '13 02:12 stefanneubig

There is currently not an easier way than just passing the queue name when you queue the job. No intention to change this behavior for the time being. If you have any ideas feel free to post them.

taylorotwell avatar Dec 11 '13 03:12 taylorotwell