mardi 12 septembre 2017

Infinitely running Laravel - PHP

A class in PHP needs to be called infinitely after each execution. That class executes and does the job in 4 seconds or more, finish time could vary in seconds depending on the task gathering(GPS coordinates) but it always finishes up nicely without any crash. I have built the above task with JQUERY and Ajax and it works fine.

However, I am working with Laravel now and have thought about implementing Laravel CRON now but so far I have only encountered limitation with Laravel CRON.

They mention all task run time to be linked with minutes,hours,days,weeks,month but doesn't not mention execution depending on successful completion of the first task. As I would like to execute the same class again and again but not halting the current execution.

Does Laravel have this limitation or I am missing something.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire