Cron jobs when running multiple instances on the same DB
Question
I have a user using my plugin that has multiple AWS instances hosting WP and pointing to the same database. One of the jobs of my plugins is to run a large number of small jobs.
I was thinking of using wp_schedule_single_event
to schedule the jobs but I’m not sure how that will work with multiple instances. Each job will have unique parameters so there won’t be any duplication.
Question:
Will each instance try to run the same job or will WordPress be able to resolve this so that each job is only run once?
0
4 months
0 Answers
23 views
0
Leave an answer
You must login or register to add a new answer .