_stefanzweifel’s avatar_stefanzweifel’s Twitter Archive—№ 2,155

  1. …in reply to @PHLAK
    @PHLAK @taylorotwell It's not documented, but you can add a shouldQueue method to your listeners/jobs to do just that. The handle method will only be executed if you return true. github.com/laravel/framework/blob/506de15b11f30d0b817f53be1d9991d25de723f3/tests/Integration/Queue/QueuedListenersTest.php#L39-L53