
I passed 2 to whenJobRunsLongerThan and it would log every job
Laravel 13.40 adds Queue::whenJobRunsLongerThan and Schedule::whenTaskRunsLongerThan. A plain 2 on the queue hook is 2 milliseconds, so a fast job looks slow. The same 2 on the scheduler is 2 seconds. Packagist this morning is 13.42.0, and those methods match 13.40.0.
Nov 11, 2026 · 9 min read
