I wasted half a day wondering why dispatching jobs wasn't working as expected. Turned out it was a combination of using tinker and the fact that dispatch method uses garbage collection to put jobs on the queue.
I filed this bug, which was closed, because two other where already filed concerning the same problem. Many people are wasting their time when faced with this problem, so it would make sense to document that "known subtlety" (citing Graham here).
Resubmitting from laravel/docs PR.
I wasted half a day wondering why dispatching jobs wasn't working as expected. Turned out it was a combination of using tinker and the fact that dispatch method uses garbage collection to put jobs on the queue.
I filed this bug, which was closed, because two other where already filed concerning the same problem. Many people are wasting their time when faced with this problem, so it would make sense to document that "known subtlety" (citing Graham here).
Thanks.