In my Laravel 5.4 web app user can request report generation that takes a couple of minutes due to a big amount of data. Because of these he couldn't work with application no more, until report will be generated. To fix this problem I have read about queues in laravel and separated out my report generation code to the job class, but my app still holds until report will be generated. How can I fix that?
To be absolutely clear I will sum up my problem:
- User make request for report generation (my app absolutely holds at this moment)
- My app receives POST request in routes and calls a function from the controller class.
- Controller's function dispatches a job, that should generate report and put it into the client web folder.