I have an HTTP endpoints written in lumen and deployed on heroku which is calling Artisan::call("queue:work"...) to start processing some queue jobs.
public function startProcess(Request $request)
{
Artisan::call('queue:work', ['--stop-when-empty', '--max-jobs' => 1]);
return 'ok';
}
As heroku allows a max timeout of 30 seconds, the process is failing as Artisan::call is synchronous, is there any way to make it asynchronous ?