Everyone knows Kron, who according to the schedule will execute the scripts you need. But my task is a little different and I think it’s just not worth it. There is a site with registered users. If no one is logged on to the site, then the crown is not necessary - no schedule for launching scripts is needed. The site stands unchanged. But after someone logged in and roughly speaking pressed a button, the sequence of running different scripts should start. These scripts can take from a couple of minutes to a couple of hours, but the nuance is that the user can even leave the site, close all the pages, but the scripts should continue their execution. Please tell me, who knows how this can be implemented?
I will clarify. Scripts can be from ten to hundreds and thousands. And the main criterion - every next script should be launched immediately after the previous one finishes its work. And if I put Kron, since I know the minimum interval for running scripts is 1 minute, I have to constantly wait - not good :(