I was hoping that I’d get more community feedback, but overall based on my research, the best option was to create a separate image of my application using the same code based, specifically tailored to run wp-cli, using the built-in crond
service to ensure that the crons were running according to a proper cron schedule. I then deployed this image as a separate deployment to my Kubernetes cluster, using previously configured persistent volume claims to ensure that directories such as the uploads were synchronized correctly between all instances (pods) of the web application AND the cron instance.
It is working quite well, but I do not know if there is a smarter / better approach which is more inline with best practices and standards.
Related Posts:
- Does DISABLE_WP_CRON prevent plugins from registering new cron tasks?
- Running WP Cron on multisite the right way
- Do WordPress cron jobs slow down page loading?
- WordPress cron isn’t scheduled on amazon web services
- Get frequency of scheduled event
- crontab wp-cron.php on multisite path-based network: one for each path? Or just one for the root?
- Running wp-cron from CLI
- Why?: hundreds of empty files named wp-cron.php?doing_wp_cron.
- Can’t access wp_filesystem in cron function
- WP CRON runs only the first time
- Check if event was scheduled – schedule event only once
- Create function in functions.php with hook name to execute URL
- cron.php being constantly deleted [closed]
- Scheduling posts on wordpress adds wrong seconds as post_date
- wp_schedule_event run in background or not?
- Detect if Cron is Running
- Run function with linux cron job in WordPress
- Schedule cron don’t work
- Cron schedule not updating after run
- Can you register two cron events in a single function?
- When to use wp_schedule_single_event for async / non-blocking processes?
- Issues When Recursively Calling wp_schedule_single_event()
- wp-cron behaviour when there are multiple queued tasks
- System Cron job not firing
- WordPress Cron Job Not working
- WordPress automatic publish: is there a timeout when WordPress won’t publish anymore?
- Cron job not working – Can’t see in the queue attached
- “Missed schedule” posting bug
- How to force ‘cron_schedules’ every minute instead 1 hour?
- Cancel/Stop a currently ongoing scheduled cron event?
- Code does not work in class implementation but works fine in functions.php file
- Use cron to create a non blocking task
- How to create and run cronjob in WP without using the plugin?
- Cron job to run just once per day using external cron service
- Manually running cron from the server
- Cron jobs when running multiple instances on the same DB
- Scheduling WP cron jobs
- WordPress Cron job, 302 response
- How can I prove if wp cron is running my task if I have DISABLE_WP_CRON set to true
- Time limit on long cron job?
- Strange cron job behavior and how to solve it?
- WordPress cron not getting executed when called by external service (but ok from browser)
- Cron and request with wp_remote_post
- How to Set a Condition via Page Template Name in WP Cron Job?
- Real cron killed my cron system. Only define( ‘ALTERNATE_WP_CRON’, true ); works
- Server cron job not working
- Most efficient way to trigger wp-cron through system cron.
- How to make sure WP-CRON job loops through all posts?
- Run external file cron using WordPress Scheduler
- Huge cron option_value into wp_options table
- setting up a wp cron job
- Pages for Cron use Only?
- Cron jobs repeating themselves
- Cron event running more than once if triggered from WP Crontrol
- How to know if WP cron is currently running my hook?
- Cronjob function not executed – negative seconds
- WP CRON Fails At 13:00 Every Day
- Update last created post in custom post types with wp_cron()?
- Custom cronjob not executing at all, but manually
- ‘wp_site_health_scheduled_check’ Causes Failure Of Other Scripts
- Having difficulties with WP cron
- Action to create custom field based on shipping class works when manually triggered, but not on cron schedule
- Is there a technical difference between invoking `wp-cron.php` and using `wp cron event run`?
- What are scheduled callbacks?
- WP Cron, how to speed it up
- How to test wp_cron?
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- get_posts inside cron
- Some rogue WordPress plugin killing my server – how do I isolate and kill it?
- Initialize WordPress environment to use in a real cron script
- Can’t find wp-cron.php but I can see it in the public folder [closed]
- WordPress wp-cron not working
- Does wp-cron runs all tasks scheduled at same time together or one after other?
- WordPress Caching – Transients API or “update_user_meta ” Cronjob?
- How to code schedule / cron job
- wp_schedule_single_event does not call my action
- Does using WP-cron make the site slower for the user?
- Scheduling a cron job from a function that is ran outside functions.php?
- Why is `wp_unschedule_event` not working
- Cron Job Keep Running in spite of being disabled
- How to create a WP Cron hooks based on schedules from Advanced cron manager plugin?
- Sending email to all users
- WordPress function, Run using Crontab
- Interrupted cron script sending me hourly emails. Please help!
- How to run wp_insert_post() & wpdb on the background?
- How to periodically roll back WordPress to a fixed point in time?
- Display a random tag but using cron to control frequency of change
- What causes wp_schedule_single_event to fire off?
- WordPress cron job running more than once
- Can/should we delete wordpress cron jobs with no action?
- Activate Plugin Automatically After Set Time
- WP_cron keeps going back to the past
- Unknown requests on my WP Site
- WordPress CRON job working when reloading the page
- Cron not sending wp-mail()
- WP CLI – Pass Query / URL Variable to Cron?
- WordPress crob job performance
- Not getting expected email when running cron hook
- How WP works with DB during cron job running?
- Checking wordpress cron hook for post and updates | what are the other cron values from wp-cli