task engine fix for update to task engine table on deadlocks