giving time sleep to REST API caching the instance to be available