Closed SubrataM3 closed 2 years ago
Seems this affects Laravel as well. I'm not sure what the expected behavior here would be. I made a PR with a failing test to follow up for Taylor: https://github.com/laravel/framework/pull/41008
Seems like we don't support dispatch_now at all anymore sorry
@driesvints Yea, But can you tell me how I can use dispatchSync() in lumen? The guide here is pretty vague and the larvel documention does not work on lumen.
Call to undefined method App\Jobs\CreateUser::dispatchSync()
It seems laravel provides dispatchSync via Dispatchable trait
which does not exist on lumen but that's present on laravel.
I think it's best that you switch to Laravel if you need that, sorry.
Description:
$this->fail() throws Exception
Undefined array key "job"
when running a job via $this->dispatchNow method()Stack Trace:
Steps To Reproduce:
1) Create a new job class and add
$this->fail();
within it's handle method. 2) Then run the job using$this->dispatchNow(new GoodJob($request->all()));