1. Real-Time Update Issue in fablib.show_site API After Resource Release

Real-Time Update Issue in fablib.show_site API After Resource Release

Home Forums FABRIC General Questions and Discussion Real-Time Update Issue in fablib.show_site API After Resource Release

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8059
    Yuanjun Dai
    Participant

      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.

      #8060
      Komal Thareja
      Participant

        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

        #8062
        Yuanjun Dai
        Participant

          The fact is I did not see it refresh even after 7 hours. It never happen before the update.

          #8063
          Komal Thareja
          Participant

            Thank you for sharing your observation. I will investigate this more and share upate.

            Thanks,

            Komal

            #8083
            Komal Thareja
            Participant

              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

              #8086
              Yuanjun Dai
              Participant

                Thank you so much!

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.
              FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

              KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)
              FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

              KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)