Skip to content

fix(hip-3-pusher): SEDA client optimization, pusher error fix, dev dependency fix#3486

Merged
merolish merged 4 commits intomainfrom
mike/hip3-mem-fixes
Feb 23, 2026
Merged

fix(hip-3-pusher): SEDA client optimization, pusher error fix, dev dependency fix#3486
merolish merged 4 commits intomainfrom
mike/hip3-mem-fixes

Conversation

@merolish
Copy link
Contributor

Summary

  • Log and metric API call failures (as internal_error)
  • Share a single httpx.AsyncClient across all SEDA feeds
  • Fix kms-related dev dependency so uv is not needed to run pusher

Rationale

Remediate oomkills in production.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@vercel
Copy link

vercel bot commented Feb 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
api-reference Ready Ready Preview, Comment Feb 23, 2026 10:23pm
component-library Ready Ready Preview, Comment Feb 23, 2026 10:23pm
developer-hub Ready Ready Preview, Comment Feb 23, 2026 10:23pm
entropy-explorer Ready Ready Preview, Comment Feb 23, 2026 10:23pm
insights Ready Ready Preview, Comment Feb 23, 2026 10:23pm
proposals Ready Ready Preview, Comment Feb 23, 2026 10:23pm
staking Ready Ready Preview, Comment Feb 23, 2026 10:23pm

Request Review

Copy link
Contributor

@tejasbadadare tejasbadadare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did your findings point you to uv being a problem? Afaik, uv run just solves the environment (packages, etc) before handing control to the python interpreter. So it's not that different to running python directly.

self._handle_response(push_response, list(oracle_pxs.keys()))
except PushError:
# since rate limiting is expected, don't necessarily log
logger.error("Push API call failed")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logger.exception to include the exc context. Are there any useful details in the PushError?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are not in this path, hence error. Exception is caught and logged prior.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, changing it to exception anyway, no harm.

Comment on lines -22 to +25
from mypy_boto3_kms import KMSClient
if TYPE_CHECKING:
from mypy_boto3_kms import KMSClient
else:
KMSClient = Any
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what this does pls

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only used to type annotate. Without this running bare python chokes on this only being a dev dependency.

@merolish merolish merged commit fe4808e into main Feb 23, 2026
10 checks passed
@merolish merolish deleted the mike/hip3-mem-fixes branch February 23, 2026 22:23
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.

2 participants