Skip to content

fix: Add delay between statistics tasks to prevent API flooding#320

Open
GuyKh wants to merge 1 commit intomainfrom
fix/bound-statistics-tasks
Open

fix: Add delay between statistics tasks to prevent API flooding#320
GuyKh wants to merge 1 commit intomainfrom
fix/bound-statistics-tasks

Conversation

@GuyKh
Copy link
Owner

@GuyKh GuyKh commented Feb 15, 2026

Summary

Add a small delay between spawning statistics tasks to prevent API rate limiting.

Problem

When multiple contracts exist, the coordinator spawns statistics tasks concurrently using async_create_task(). This can cause API rate limiting or flooding when there are many contracts.

Solution

Added a 1-second delay between starting each statistics task to space out API requests and prevent rate limiting.

When multiple contracts exist, statistics tasks are spawned concurrently
which can cause API rate limiting. Added 1 second delay between
starting each statistics task.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant