schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

Enhacement: tags #22

Open ecentinela opened 11 years ago

ecentinela commented 11 years ago

Allow to tag a job with multiple tags and allow to include / exclude tags on the command. So, for example, I can run a command with video_conversion tag (a long running task) and another command with email_sending tag (a quick and important task).

sadortun commented 9 years ago

You can use multiples queues for that, and limiit the number of concurent jobs

    queue_options:
        video_conversion:
            max_concurrent_jobs: 2 

http://jmsyst.com/bundles/JMSJobQueueBundle/master/usage#fine-grained-concurrency-control-through-queues

Maybe, the queue implémentation coule be modified to allow to provide an array'queue1', 'queue2')