title: How to handle a failed job laravel
body: <p>I am doing multiple calls to different api's on my cron job, like:</p>
  
  <pre><code>foreach ($transactions as $transaction) {
      $job = (new SendApplicationToBank($transaction));
      $this-&gt;dispatch($job);
  }
  </code></pre>
  
  <p>One transaction has many banks so I am sending a transaction to all banks related:</p>
  
  <p>Job:</p>
  
  <pre><code>public function handle(){
      try {
          $result = app($bankClass)::sendLoanApplication($this-&gt;transaction);
      } catch (Exception $e) {
          //Silent fail
      }
  }
  </code></pre>
  
  <p>The problem is that its failing on the first bank and just keeps retrying. </p>
  
  <p>How should go and cofigure so If a job fails just release back to queue and continue the next one ?</p>
  
  <p>Results:</p>
  
  <p><a href="https://i.stack.imgur.com/GBhvB.png" rel="noreferrer">php artisan queue:listen</a></p>