4 ms·
Send progress events over your push channel. Push an event every 1% or 10% or whatever you need depending on what you need for your experience. If you're talki
by habitue 13y ago
Send progress events over your push channel. Push an event every 1% or 10% or whatever you need depending on what you need for your experience.
If you're talking about generic progress reporting from a tool that doesn't know what the underlying job consists of (i.e. it only knows "started" "done" "errored"), then I'm not aware of any pattern to provide an accurate progress meter. You could perhaps keep statistics on the length of past runs (like some CI servers do for build times), but it would really depend on your application whether users are willing to accept that those progress bars are just a guess and sometimes run over.