title: Running artisan queue:work with additional arguments
body: <p>I am trying to run queued jobs, and pass additional parameters through the command line.  My use case is this:</p>
  
  <p>I have 4 running <code>queue:work</code> processes through supervisor.  The jobs in my queue all require access to a proxy server, through which i can only have 4 processes running at any given time.  When I start up a queued job, I have to find a process number (1 through 4) that is not currently being used, then run my command through that process.</p>
  
  <p>I have been using a database table to store the processes and it has a column for <code>in_use</code> which keeps track of whether its being used, but the problem I'm seeing is when two <code>queue:work</code> commands run simultaneously, the same proxy process can be picked from the database for both.</p>
  
  <p><strong>What I want</strong></p>
  
  <p><code>php artisan queue:work --process=1</code></p>
  
  <p>Then to somehow retrieve that argument inside the job, so I can run my 4 processes each in supervisor separately.</p>
  
  <p>As a workaround, I have created a custom artisan command which will take the argument, but I then lose the queue functionality.  I don't want to have to develop a custom queue process.</p>
  
  <p>Is there a way to pass this argument?  Or, alternatively, is there a way that I could pop jobs off the queue from within my custom artisan command, and then run them manually rather than through <code>queue:work</code>?</p>