Coder Social home page Coder Social logo

Comments (4)

aw avatar aw commented on September 21, 2024

The update script contains 4 steps, but two of the steps take longer depending on:

  • the size of the update package being decrypted
  • the size of each individual file to be updated
  • the read/write speed of the storage disks

There's no way to guess how long that processing will take, so we would have to somewhat fake the percentages.

I could easily add percentages such as 0%, 25%, 50%, 75%, 100%, but the time between 25-50% and between 75%-100% can vary significantly depending on the factors mentioned above. I'm not entirely sure these percentages will provide any real value if we do that. @ryneo what do you think?

from jidoteki-admin-api.

aw avatar aw commented on September 21, 2024

@ryneo I was thinking about this a bit more, and in fact yes it would be possible to do what you suggest.

I also have some ideas to achieve this without faking anything.

from jidoteki-admin-api.

ryneo avatar ryneo commented on September 21, 2024

That's awesome! Looking forward to it.

from jidoteki-admin-api.

aw avatar aw commented on September 21, 2024

It took a while, but this is finally available as of v1.21.0. There is a new percentage key/value when fetching the status of an update with the /admin/update API endpoint, example:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "status": "success",
    "percentage": 100,
    "log": "[1432140922][SYSTEM] Updating system successful"
}

from jidoteki-admin-api.

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.