Giter Club home page Giter Club logo

Comments (4)

bojidar-bg avatar bojidar-bg commented on May 29, 2024

Since downloading the zips might take a lot of time, we will have to run the PHP script that does it in the background. To do this there are three main approaches:

  • Use cron to schedule a job every X minutes. Looks like the cleanest of all the variants
    • Or a watchdog with a while(true) script.
  • Use forking to split the process and terminate the client-side copy. The other copy would download and terminate later. If the other copy fails to start or crashes for whatever reason, we won't ever update the hash.
  • Use exec or similar to launch a process in the background (with &). Same as the previous, plus it might open an additional attack surface.

On IRC we decided that we would use the first approach, since it is cleaner than the others.

from godot-asset-library.

est31 avatar est31 commented on May 29, 2024

@bojidar-bg SHA-256 is okay.

from godot-asset-library.

bojidar-bg avatar bojidar-bg commented on May 29, 2024

@alketii ~ Actually, there is one more design consideration left -- when should the hash be updated, when the asset is approved, or when the edit is submitted... WDYT?

from godot-asset-library.

alketii avatar alketii commented on May 29, 2024

@bojidar-bg I think moderator should update the hash manually

from godot-asset-library.

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.