I have an action that calls a function which takes about 20 seconds to complete (uploading file to remote server). How can I code it in such a way so that it could check if WP cron is running the same action?
I'm trying to prevent double run.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this community
true
BEFORE you start the long-lasting action and tofalse
after you finish / certain time, where you expect to be a timeout have happened.