Support » Fixing WordPress » Deadlock error from cron row wp_options update

  • 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.

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Deadlock error from cron row wp_options update’ is closed to new replies.