mardi 10 octobre 2017

Laravel 5.5 redis queue is too slow

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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire