php - How to execute heavy task? -
i need parse big excel file , convert json format, however, got error when tried so:
maximum execution time of 60 seconds exceeded
what right way handle this? upload excel file, user see waiting animation, until parsing done.
also, if user refreshed page, see waiting animation if parsing not done yet @ server side.
how break task sub tasks, , manage them till executed? what's right way in laravel 5?
the right way handle long running jobs in laravel use queues.
when user uploads excel file, can push new job processing file queue , gets executed in background.
Comments
Post a Comment