Courses

Queues in Laravel 12

Delay Jobs if Some Condition Fails

You're reading a FREE PREVIEW of a PREMIUM course.

I want to show you how to delay job execution and retry jobs conditionally when working with Laravel queues.


Delay Start Of A Laravel Job

Sometimes you need to schedule a job to run in the future rather than immediately. For example, after a user registers, you might want to send a notification after some time.

When dispatching a job, you can chain a delay method which accepts a parameter - you can even use Carbon for more readable time expressions.

In this example, the job will be processed after 15 minutes, but in reality, it could take...

The full lesson is only for Premium Members.
Want to access all 15 lessons of this course? (46 min read)

You also get:

  • 76 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord