Skip to content

ETA estimate not accurate on long-running processes when the rate changes over the time #247

@Jylpah

Description

@Jylpah

Hello,

first of all a big thanks for a great package. I love ❤️ it. I have noticed that alive-progress is very-very slow to react to rate changes in long running processes. I have a batch run that in the beginning runs 60/s, then after maybe 5 hours it drops to 40/s and then maybe few hours it drops to 20/s and continues still ~6 hours. When the real progress is ~20/s, alive-progress will report ~40/s rate and very-very slowly dropping it leading to false ETA.

Is there an option control the responsiveness of the rate estimator? Now the (Moving Average) rate estimator has way too long lead time.

If I am not mistaken, the culprit is this:

run.rate = gen_rate.send((processed(), run.elapsed))

This line calculates the rate of the cumulative total vs. total elapsed time vs. calculating it from the difference from the previous change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions