Added retry-ability to update_metadata task