$log_message_adaptor->store_hive_message("Caught a DEADLOCK when trying to execute '$sql_cmd' (attempt #$attempt), retrying in $this_sleep_sec sec",0);
if($deadlock_log_callback){
$deadlock_log_callback->(" temporarily failed due to a DEADLOCK in the database (attempt #$attempt). Will try again in $this_sleep_sec sec");