openwisp / openwisp/openwisp-utils

[feature] Avoid sending duplicate usage metrics

Open
#531 1 comment 0 reactions 1 assignee View on GitHub

@pandafy is already working on this.

Since Nov 11, 2025.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.