Comments (4)
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.
@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.
That's awesome! Looking forward to it.
from jidoteki-admin-api.
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)
- Add endpoint to upload TLS certs HOT 1
- Add services toggle endpoint HOT 1
- Server cannot start when JIDO_API_PORT env var is set HOT 2
- API crashes when no log file exists HOT 1
- Missing certs status
- HMAC auth bypassed when no token is set
- Update API documentation
- Add ability to manage NTP server setting
- Certificate validation is bypassed on missing key HOT 1
- User friendly message for status in GET /update endpoint HOT 2
- Admin UI authentication prevents short tokens HOT 2
- Disk usage graph makes no sense
- Storage options should be optional HOT 1
- Return build info similar to version HOT 1
- Add storage discoverability and testing
- Parsing stops with capital T
- Certain endpoints don't return a proper response
- Do you have any examples of how to create a software update package? HOT 3
- Ensure the API's cleartext bound IP can be configured or disabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jidoteki-admin-api.