Closed bertytobing closed 9 months ago
I don’t think I understand the issue clearly, could you provide a reproduction step?
I don’t think I understand the issue clearly, could you provide a reproduction step?
mongodb
for storage.fixed-window
strategy.2/1 minute
.If I'm understanding correctly, the fixed-window
strategy should reset the limit based on the specified period, in this case, every minute (at zero seconds). However, it currently seems to reset the limit based on the second of the first request (moving-window
strategy).
Yes this is the expected behavior of the fixed window strategy is implemented (regardless of the storage type) - i.e. the window is constructed based on the second of the first hit.
Yes this is the expected behavior of the fixed window strategy is implemented (regardless of the storage type) - i.e. the window is constructed based on the second of the first hit.
So If I want to make it reset every month let's say, how to achieve that?
So If I want to make it reset every month let's say, how to achieve that?
You could call the reset method on the storage if it supports it using a scheduled job
Closing due to inactivity
Fixed window strategy using mongodb storage not working. The expireAt always use moving window strategy.
Expected Behaviour
Use strategy configuration.
Current Behaviour
https://github.com/alisaifee/limits/blob/master/limits/storage/mongodb.py#L104
Always use moving window strategy.
Steps to Reproduce
Already setting strategy but not work.