Skip to content

Add reactor cache cleanup#68675

Open
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:fix-68660-reactor-cleanup
Open

Add reactor cache cleanup#68675
harshang03 wants to merge 1 commit intosaltstack:masterfrom
harshang03:fix-68660-reactor-cleanup

Conversation

@harshang03
Copy link

What does this PR do?
Adds periodic cleanup for reactor client caches and a manual reactor.cleanup runner to release retained objects in long-running reactor processes. Also allows configuring cleanup interval in the reactor engine.

What issues does this PR fix or reference?
Fixes #68660

Previous Behavior
Reactor client cache could retain objects for long periods without explicit cleanup, contributing to memory growth under sustained event load.

New Behavior
Reactor periodically triggers cache cleanup and exposes a runner to request cleanup on demand.

Merge requirements satisfied?
[ ] Docs
[ ] Changelog
[ ] Tests written/updated

Commits signed with GPG?
No

@welcome
Copy link

welcome bot commented Feb 3, 2026

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here's some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at saltproject.pdl@broadcom.com. We're glad you've joined our community and look forward to doing awesome things with you!

@harshang03 harshang03 marked this pull request as ready for review February 5, 2026 19:06
@harshang03 harshang03 requested a review from a team as a code owner February 5, 2026 19:07
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.

[Bug]: Reactor memory leak

1 participant