Queued jobs with individual max number of tries, how to?
<p>Normally, the max tries are specified on the queue level like so:</p>

<pre><code>php artisan queue:listen connection-name --tries=3
</code></pre>

<p>I would like to be able to override this (without affecting other jobs) on the job level within the job class.</p>

<p>I can think of three ways to go about this but they may not be elegant:</p>

<ol>
<li>Set a high number of tries on queue level</li>
<li>Look into the failed queue and retry the job</li>
<li>Create a new job upon failure</li>
</ol>

<p>Note:</p>

<ol>
<li>My case is related to polling via API.</li>
<li>I am recording my poll attempts within my own model.</li>
</ol>