title: How can I check the status of a queue in Laravel?
body: <p>I need to submit a number of jobs to a <a href="https://laravel.com/docs/5.1/queues" rel="noreferrer">Laravel queue</a> to process some uploaded CSV files. These jobs could be finished in one second if the files are small, or a few seconds if they're bigger, or possibly up to a minute if the CSV files are very big. And I can't tell in advance how big the files will be.</p>
  
  <p>When the user goes to the "results" page, I need to display the results - but only if the queue has finished the jobs. If the queue is still processing, I need to display a "try again later" message.</p>
  
  <p>So - is there a way to check, from a controller, whether the queue has finished? </p>
  
  <p>I'm currently using Laravel 5.1 but would happily upgrade if that helps. And I'm currently using the <a href="https://laravel.com/docs/5.1/queues#introduction" rel="noreferrer">database queue driver</a>. Ideally I'd love to find a general technique that works for all queue drivers, but if the only way to do it is to check a database table then I guess that's what I have to do.</p>
  
  <p>Thanks!</p>