I have dispatch call in action:
dispatch(new ProcessVideo($video));
logger('After dispatch at ' . Carbon::now()->format('H:i:s.u'));
and job:
public function handle() : void
{
logger('ProcessVideo@handle at ' . Carbon::now()->format('H:i:s.u'));
}
In logs we can see that interval between dispatch and handling from queue more than 2.5 seconds!
[2017-10-11 00:02:55] local.DEBUG: After dispatch at 00:02:55.423141
[2017-10-11 00:02:58] local.DEBUG: ProcessVideo@handle at 00:02:58.071249
What the problem can be here? It's my local machine and it's only ONE job which was dispatched to test functionality