I have a laravel app. I use a cronjob which runs every 4 hours, and imports csv files and saves in the database.
I have limited times (300 sec max execution time, 60 sec cpu time). The import script should import a lot of csv files (400+).
Is there a way to interrupt before the time runs out and call the import script again? Or how could I solve this so the files can be imported safely?