A New Job-based Retry Delay Comes to Laravel 5.8.14

A New Job-based Retry Delay Comes to Laravel 5.8.14

Laravel 5.8.14 is out with a job-based retry delay and a partial revert of the ability to register custom Doctrine DBAL types in the schema builder introduced in Laravel 5.8.13 (see A New Laravel Blade Error Directive comes to Laravel 5.8.13).

The job-based retry delay enables you to define a public $retryAfter property on a job class or define a retryAfter() method if the logic is more complicated:

// Using a property...
public $retryAfter = 10;

// Using a method...
public function retryAfter()
{
    // ... logic

    return now()->addSeconds($seconds);
}

The retryAfter method can return an integer or a DateTime instance.

You can see the full list of fixes below, and the whole diff between 5.8.13 and 5.8.14 on GitHub. The full release notes for Laravel 5.8 are available in the GitHub 5.8 changelog.

v5.8.14

Added

  • Implemented Job Based Retry Delay (#28265)

Changed

  • Update auth stubs with @error blade directive (#28273)
  • Convert email data tables to layout tables (#28286)

Reverted

Refactoring

  • Replace code with Null Coalescing Operator (#28280, #28287)


Filed in: News / Releases


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Full Stack or Back-End Developer
Alexandria, VA; Tallahassee, FL; Orlando, FL
Marketing for Change
Full Stack Software Engineer
Atlanta, GA or Remote
Voxie
Laravel/PHP Developer
Chicago, IL
Neon One
Software Engineer, Web Applications
Vaughan, ON, Canada
Blast Motion
Contract Services Software Engineer (Laravel | Vue | Tailwind)
Remote
Riverbed Technology
Senior Laravel Developer
Wilmington, NC
GE Software Inc.
Senior Full Stack Developer (PHP | Vue | DDD)
Charleston, SC
MassageBook