Laravel sync job and specific queue on the same command?
<p>I want to dispatch a new job on a specific queue connection, the thing is that I want it to run right away (sync) on my local machine.</p>

<p>Example:</p>

<pre><code>$job = ( new \MyJobClass() )-&gt;onConnection('sqs2-connection');
dispatch( $job );
</code></pre>

<p>How can I make sure this job will run as <code>sync</code> on my local env?</p>