Skip to content

Conversation

@kzscisoft
Copy link
Collaborator

@kzscisoft kzscisoft commented Feb 4, 2026

Limit metric size to be within 10MB Limit

Issue: #906

Python Version(s) Tested: 3.13

Operating System(s): Ubuntu 25.10

Documentation PR: Issue on Docs repo.

📝 Summary

Modifies the dispatcher classes to allow for additional "hold-back" thresholds to be defined.

🔄 Changes

  • simvue.factory has been removed and dispatchers moved to simvue.dispatch.
  • A new argument thresholds has been added to the initialiser of all simvue.dispatch classes, this argument is a dictionary allowing you to specify additional thresholds, in this case {"max_size": 10 * 1024 * 1024}.
  • The member function add_item now includes a metadata argument where the value for checking against these thresholds is provided: add_item(item, object_type="metrics", ..., metadata=dict(max_size=len(item)).

✔️ Checklist

  • Unit and integration tests passing.
  • Pre-commit hooks passing.
  • Quality checks passing.
  • Updated the documentation.

@kzscisoft kzscisoft added this to the Simvue Python API v2.4 milestone Feb 4, 2026
@kzscisoft kzscisoft added enhancement New feature or request python Pull requests that update python code labels Feb 4, 2026
@kzscisoft kzscisoft linked an issue Feb 4, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python API can send metrics (grid) data which is too big

4 participants