I’m operating into a difficulty that appears to be associated particularly to the wp cli.
I’ve some cron jobs and since I take advantage of wp cron occasion run --due-now
on an actual cron, I’ve DISABLE_WP_CRON
set to true
.
I run the wp cron
each 5 minutes.
This reveals it working and I can see that my cron jobs are being ran correctly.
The problem I’m experiencing is that this doesn’t replace WordPress that the cron has ran. That means, all of the cron jobs present as overdue in crontrol. If I run the cron once more, I get all the identical cron jobs to run.
Now, if I am going to the cron endpoint from an internet browser, then it’ll replace the timestamps and the whole lot works as anticipated.
The problem is that solely wp cron
will not be updating the timestamps.
Has anybody bumped into this problem earlier than? Is that this a recognized problem? I could not discover something about this problem and am fairly involved as I’ve some heavy cron processes that have to run as soon as per day and never each 5 minutes.
This additionally causes points with wp_schedule_single_event
as after it runs, it’s nonetheless left within the cron queue regardless that it accomplished. Once more, if I run it from the area endpoint it really works as anticipated.
I don’t have any errors being reported and when operating in debug, I do not see any points. I additionally checked the positioning well being to verify there weren’t any points and there are none listed there.
I’m utilizing memcached and I even disabled it to test if this was a caching problem and that isn’t the case. I’ve utterly eliminated memcached from the system and it nonetheless does this.
Anybody have any concepts on learn how to troubleshoot this problem?
Not utilizing wp cron
will not be attainable. I can not use the URL endpoint as manufacturing is deployed in AWS ECS scheduled duties and it makes use of the wp cron
to course of the cron jobs. Altering that to make use of the URL endpoint is a really final resort if in any respect. I would actually similar to to study why this isn’t capable of replace the timestamps.
Thanks