title: Laravel & Laravel Forge returns "MaxAttemptsExceededException:" even when tries are set at 1
body: <p>My error log is getting filled with this useless text, I have set my job to only try once and the time out to 0 because the jobs can be really long and it depends on the user.</p>
  
  <p>So the job has tries set at 1 timeout at 0, on laravel forge I have set my worker to have max tries at 1 and timeout 0, and still it gives me this error in the logs:</p>
  
  <pre><code>Illuminate\Queue\MaxAttemptsExceededException: A queued job has been attempted too many times. The job may have previously timed out. in /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:385
  Stack trace:
  #0 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(311): Illuminate\Queue\Worker-&gt;markJobAsFailedIfAlreadyExceedsMaxAttempts('beanstalkd', Object(Illuminate\Queue\Jobs\BeanstalkdJob), 1)
  #1 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(267): Illuminate\Queue\Worker-&gt;process('beanstalkd', Object(Illuminate\Queue\Jobs\BeanstalkdJob), Object(Illuminate\Queue\WorkerOptions))
  #2 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(113): Illuminate\Queue\Worker-&gt;runJob(Object(Illuminate\Queue\Jobs\BeanstalkdJob), 'beanstalkd', Object(Illuminate\Queue\WorkerOptions))
  #3 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(101): Illuminate\Queue\Worker-&gt;daemon('beanstalkd', 'default', Object(Illuminate\Queue\WorkerOptions))
  #4 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(84): Illuminate\Queue\Console\WorkCommand-&gt;runWorker('beanstalkd', 'default')
  #5 [internal function]: Illuminate\Queue\Console\WorkCommand-&gt;fire()
  #6 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(29): call_user_func_array(Array, Array)
  #7 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(87): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
  #8 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(31): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
  #9 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Container/Container.php(539): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
  #10 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Illuminate\Container\Container-&gt;call(Array)
  #11 /home/forge/Altpocket.io/vendor/symfony/console/Command/Command.php(240): Illuminate\Console\Command-&gt;execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
  #12 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Console/Command.php(167): Symfony\Component\Console\Command\Command-&gt;run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
  #13 /home/forge/Altpocket.io/vendor/symfony/console/Application.php(860): Illuminate\Console\Command-&gt;run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #14 /home/forge/Altpocket.io/vendor/symfony/console/Application.php(218): Symfony\Component\Console\Application-&gt;doRunCommand(Object(Illuminate\Queue\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #15 /home/forge/Altpocket.io/vendor/symfony/console/Application.php(122): Symfony\Component\Console\Application-&gt;doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #16 /home/forge/Altpocket.io/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(122): Symfony\Component\Console\Application-&gt;run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #17 /home/forge/Altpocket.io/artisan(35): Illuminate\Foundation\Console\Kernel-&gt;handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #18 {main}
  </code></pre>
  
  <p>Here is my job:</p>
  
  <pre><code>    &lt;?php
  
  namespace App\Jobs;
  
  use Illuminate\Bus\Queueable;
  use Illuminate\Queue\SerializesModels;
  use Illuminate\Queue\InteractsWithQueue;
  use Illuminate\Contracts\Queue\ShouldQueue;
  use Illuminate\Foundation\Bus\Dispatchable;
  use App\Events\PushEvent;
  use Cache;
  
  class ImportBittrex implements ShouldQueue
  {
      use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
  
      /**
       * Create a new job instance.
       *
       * @return void
       */
  
       protected $userid;
       protected $withdraws;
       protected $cachekey;
  
       public $tries = 1;
       public $timeout = 0;
  
  
      public function __construct($userid, $withdraws)
      {
          $this-&gt;userid = $userid;
          $this-&gt;withdraws = $withdraws;
      }
  
      /**
       * Execute the job.
       *
       * @return void
       */
      public function handle()
      {
        $this-&gt;cachekey = 'Import-Bittrex2'.$this-&gt;userid;
        if(Cache::get($this-&gt;cachekey) !== null) {
           event(new PushEvent('You already have an import running!', 'error', $this-&gt;userid));
           return $this-&gt;userid;
       }
        Cache::put($this-&gt;cachekey, 1, 5);
        app('App\Http\Controllers\ImportController')-&gt;importDepositsB($this-&gt;userid);
        app('App\Http\Controllers\ImportController')-&gt;importTradesB($this-&gt;userid);
        app('App\Http\Controllers\ImportController')-&gt;insertBuysB($this-&gt;userid);
        app('App\Http\Controllers\ImportController')-&gt;importWithdrawsB($this-&gt;userid, $this-&gt;withdraws);
        app('App\Http\Controllers\ImportController')-&gt;insertSellsB($this-&gt;userid);
        app('App\Http\Controllers\ImportController')-&gt;importBalancesB($this-&gt;userid);
        app('App\Http\Controllers\ImportController')-&gt;safeBittrexCheck($this-&gt;userid);
        Cache::forget('investments'.$this-&gt;userid);
        Cache::forget('b_investments'.$this-&gt;userid);
        Cache::forget('deposits'.$this-&gt;userid);
        Cache::forget('withdraws'.$this-&gt;userid);
        Cache::forget('balances'.$this-&gt;userid);
        Cache::forget('balances-summed'.$this-&gt;userid);
        Cache::forget('deposits'.$this-&gt;userid);
        Cache::forget('withdraws'.$this-&gt;userid);
  
        Cache::forget($this-&gt;cachekey);
      }
  }
  </code></pre>
  
  <p>Here is my worker on laravel forge:</p>
  
  <p><a href="https://i.imgur.com/lz22zMX.png" rel="nofollow noreferrer">https://i.imgur.com/lz22zMX.png</a></p>
  
  <p>What is wrong here? Why does this keep happening.</p>
  
  <p>Basicially in the first function run in the job it will check if the user has a valid api key combination and if it doesnt it catches it and throws an error like so:</p>
  
  <p><a href="https://i.imgur.com/zldnUnT.png" rel="nofollow noreferrer">https://i.imgur.com/zldnUnT.png</a></p>
  
  <p>Please help me I'm losing my mind.</p>