add retry logic for deployment scan check