My script requires long execution, 5+ minutes. The best solution for me is to run my script via CLI, but which way is the best from Laravel's perspective.
I read about Task Scheduling https://laravel.com/docs/5.4/scheduling which is a good solution since it is run via Cron Job and that is something I need. But is that script called as CLI command and does it have execution time?
Second is https://laravel.com/docs/5.4/artisan#generating-commands my own command. Which is called via CLI and I can make it execute my script.
Which is better to take and keep in mind I need execution time to be almost unlimited