BTMash

Blob of contradictions

Running things in parallel without arguments

Written

Parallel is an amazing library that lets you run commands in ... parallel. You can tell it how many jobs to run in parallel (a default of 1 job per CPU) and can really speed up ad-hoc jobs. However, it generally requires some form of an argument to run things in parallel (as an example, echo codes_video_bulk_content_export_object_queue codes_vmvpd_epg codes_user_export_queue | parallel drush queue:run would run the 3 queue workers in parallel. But if I wanted to run a specific queue multiple times, one my typically do something like drush queue:run codes_user_export_queue &; codes_user_export_queue &; codes_user_export_queue &  to get the codes_user_export_queue worker running 3 times With parallel, you provide the -n0 argument to pass through no arguments. So you might do something like seq 3 | parallel -n0 drush queue:run codes_user_export_queue. This will similarly run the codes_user_export_queue 3 times. Try it yourself!