Task - adding retry logic for setTaskflowType and createRelationshipTo to avoid potential deadlocks