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.