Search code examples
laravellaravel-4queuebeanstalkd

Laravel queue retries delay


I am building a large application using Laravel and find the use of queue in this application. I am now using beanstalkd service for this. However, I am stuck in finding an answer for this set up. Is there a way to put the queue retries be processed in not instantly manner. I wanted it to be retried after n seconds. Thanks


Solution

  • Try using the inbuilt Queue service and use the following

    Queue::later(Carbon::now()->addMinutes(1), $task);
    

    Relevant docs