openwisp / openwisp/openwisp-utils
[feature] Avoid sending duplicate usage metrics
@pandafy is already working on this.
Since Nov 11, 2025.
- Dominant language
- Python
- Stars
- 93
- Forks
- 104
- Avg merge
- 14h 10m
- Merged PRs (30d)
- 22
Description
⚠️ Not suitable to beginners
Is your feature request related to a problem? Please describe.
Currently, the metric usage data may be sent multiple times per day if the Django project is configured incorrectly. i
Describe the solution you'd like
I suggest that metric usage should be sent only once per day. To achieve this, we can calculate and store a hash of the payload along with the current date. On any given date, if the same payload is generated again, the hash should be checked before sending. If an identical hash (for the same date) already exists, skip sending to avoid duplication. This ensures each unique payload is sent at most once per day.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.