- This topic has 5 replies, 2 voices, and was last updated 9 months, 2 weeks ago by .
 
Viewing 6 posts - 1 through 6 (of 6 total)
	
Viewing 6 posts - 1 through 6 (of 6 total)
	
- You must be logged in to reply to this topic.
 
Home › Forums › FABRIC General Questions and Discussion › Real-Time Update Issue in fablib.show_site API After Resource Release
There is an issue in Fabric where, after a resource is released, the changes are not reflected in real time using the fablib.show_site API.
Hi Yuanjun,
This behavior is intentional; resource information is retrieved from cached data. Due to the scale of the system, updating it after each create or delete operation would be resource-intensive. Instead, the cache is refreshed at regular intervals, currently every 30 minutes.
Thanks,
Komal
The fact is I did not see it refresh even after 7 hours. It never happen before the update.
Thank you for sharing your observation. I will investigate this more and share upate.
Thanks,
Komal
Subject: API Behavior Verification
Hi Yuanjun,
I have verified this, and the API is functioning as intended.
fablib.list_sites() retrieves resource information from the testbed. Once fetched, users can display data for a specific site using fablib.show_site(). Please note that fablib.show_site() only presents site information that was previously retrieved via fablib.list_sites().
To refresh the resource information, you need to call fablib.list_sites(update=True), followed by fablib.show_site().
Please check this in your code, and let us know if you continue to experience any issues.
Thanks,
Komal
Thank you so much!