title: Wordpress update Deadlock
body: <p>I have got a import that will update quite a lot of rows.</p>
  
  <p>From time to time it gets hit by a deadlock.</p>
  
  <p>The question is, how can I catch a deadlock in order to retry this update?</p>
  
  <p>I am using update_post_meta() for this, but I am failing to understand how to try/catch this.</p>