Giter Club home page Giter Club logo

Comments (2)

Mister-SOSA avatar Mister-SOSA commented on August 11, 2024 1

Apologies, I forgot I had this issue open. The problem has since been relatively negligible, so I'll close the issue. I will, however, elaborate for people who may run into the same hiccup as I did.

My use case for this library was to have my python module hosted on the web, and my client side program would fetch the module on startup. This was great because I could just push changes to the script whenever I felt like it, and users would get the latest fixes and whatnot. This works fantastic for periodic updates, but my confusion came about during testing, when I was commiting multiple updates quickly. Upon launching the client side program, the newest version of the module would be imported and used just fine. For every launch thereafter, the program would just grab that downloaded module from the local temp directory instead of the web hosted version.

So what's going on?
It appears the imported module is stored locally for some amount of time before it's thrown away and refetched. This period of time was seemingly random, spanning anywhere from a couple minutes to an hour. At some point, those temp files would just be thrown away and refetched on the next launch.

The solution:
Simply allow ample time from the point of commit to the expected time you'd want the client side application to receive the newest module, and it's all good. Eventually, all the temp files will be discarded and the client application will import the newest version of the module.

from httpimport.

operatorequals avatar operatorequals commented on August 11, 2024

Can you explain your problem further?

from httpimport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.