title: Laravel SQS Queue -> delayed jobs fail
body: <p>I am trying to delay a job in Laravel that is dispatched to a AWS SQS queue.
  Standard jobs that are not delayed run fine on that queue but as soon as I delay something, it crashes. I first tried:</p>
  <pre><code>$awsgatewayjob = new \App\Jobs\DispatchAwsGatewayJob();
  $this-&gt;dispatch($awsgatewayjob)-&gt;delay(now()-&gt;addMinutes(1));
  </code></pre>
  <p>This gives error:
  <em>Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
  Call to a member function delay() on string</em></p>
  <p>Next, I tried to do it using the style Laravel explains in the manual:</p>
  <pre><code>DispatchAwsGatewayJob::dispatch()-&gt;delay(now()-&gt;addMinutes(1));
  </code></pre>
  <p>And this gives error:</p>
  <p><em>Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
  Call to undefined method Maqe\LaravelSqsFifo\SqsFifoQueue::getSeconds()</em></p>
  <p>I googled the last error and I am happy to report I am not the only one that experienced that error: <a href="https://github.com/maqe/laravel-sqs-fifo/issues/7" rel="nofollow noreferrer">https://github.com/maqe/laravel-sqs-fifo/issues/7</a></p>
  <p>Anyway, I don't get it. I am running on Laravel 5.5 and I updated all my packages with composer update to make sure I wasn't using an outdated package.</p>
  <p>Any ideas?</p>
  <p>Here is the (redacted) code for the 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 Auth;
  use Session;
  
  use Symfony\Component\Process\Process;
  use Symfony\Component\Process\Exception\ProcessFailedException;
  use Alert;
  
  
  class DispatchAwsGatewayJob implements ShouldQueue
  {
  
    private $method;
    private $rest_method;
    private $data;
  
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
  
    /**
    * Create a new job instance.
    *
    * @return void
    */
    public function __construct($method, $rest_method, $data)
    {
      $this-&gt;method = $method;
      $this-&gt;rest_method = $rest_method;
      $this-&gt;data = $data;
  
    }
  
    /**
    * Execute the job.
    *
    * @return void
    */
    public function handle()
    {
      $curl = curl_init();
      
      // some more stuff here to config $curl
  
      $result = curl_exec($curl);
      curl_close($curl);
    }
  }
  </code></pre>
  <p>Here is the full error log:</p>
  <p>Symfony\Component\Debug\Exception\FatalThrowableError thrown with message &quot;Call to undefined method Maqe\LaravelSqsFifo\SqsFifoQueue::getSeconds()&quot;</p>
  <p>Stacktrace:</p>
  <h1>0 Symfony\Component\Debug\Exception\FatalThrowableError in /var/www/sparkwebsite/vendor/maqe/laravel-sqs-fifo/src/SqsFifoQueue.php:42</h1>
  <p>This is the complete stacktrace. I am now using a standard queue and everything runs fine!</p>