I have some CPU intensive scripts that I don't want to run concurrently. Every now and again the scripts will overlap and crash the server. Already at 2GB and the mysql container still crashes.
I have a crontab setup to hit example.com/cron.php?do_cron=randstr every 15 minutes.
Is there any way to place a lock and only execute one cron task at a time? When it's done, the next one would then run.
I know this can be accomplished using PHP's file locking mechanism (but then it doesn't queue the next task). Not sure if WP does this on its own.
All help appreciated!