WordPress.org

Ready to get started?Download WordPress

Forums

Deadlock error from cron row wp_options update (2 posts)

  1. John Peden
    Member
    Posted 1 year ago #

    Hi,

    My error_log is full of deadlock error messages caused when the cron row in my wp_options table is updated by something. The update statement is always the same, but seems to be called at irregular time intervals. I've disabled wp-cron through wp-config.php and it is not set to run in crontab. As stipulated, the intervals with which the error messages occur appear to be on page loads, that is, they are irregular but frequent (every few minutes). I've looked at the cron API and think I can see what is being called ( wp_schedule_event() function) but I've no idea why it should be called if wp-cron has been disabled.

  2. John Peden
    Member
    Posted 1 year ago #

    Digging around in the code I learned that wp-cron simply executes what it can find in the cron table (in wp_options). This isn't the issue.

    I'm getting a deadlock from wp_schedule_event() (or the other two event-scheduling functions) trying to update the cron table. Obviously, these functions run whenever they are loaded (in the WP core or a plugin) so WordPress is doing what it should be, I can't explain the deadlock but its obviously due to the server config I'm running.

Topic Closed

This topic has been closed to new replies.

About this Topic