You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can be assured that no matter how often I run my_func() in a given time, my decay will remain constant at 1 point every 5 seconds. However, the amount of score I can potentially accumulate during that same period depends entirely on how often I execute my_func().
So we have an issue where one factor is determined wholly by an outside influence (a cron job, for example) and the other is determined wholly by an inside influence (the decay).
Providing a way to weigh score accumulation by time will make using scorekeepers easier to reason about as well as mitigating a class of bug that could result from operations outside the package's control.
The text was updated successfully, but these errors were encountered:
Currently, decay is completely time based whereas score accumulation is based on how frequently the decorated function is executed.
For instance, let's say we have the following:
I can be assured that no matter how often I run my_func() in a given time, my decay will remain constant at 1 point every 5 seconds. However, the amount of score I can potentially accumulate during that same period depends entirely on how often I execute my_func().
So we have an issue where one factor is determined wholly by an outside influence (a cron job, for example) and the other is determined wholly by an inside influence (the decay).
Providing a way to weigh score accumulation by time will make using scorekeepers easier to reason about as well as mitigating a class of bug that could result from operations outside the package's control.
The text was updated successfully, but these errors were encountered: