Skip to content

refactor(config): Increase default queue cleanup interval to 120s#122

Merged
edenreich merged 1 commit intomainfrom
refactor/improve-config-defaults
Dec 13, 2025
Merged

refactor(config): Increase default queue cleanup interval to 120s#122
edenreich merged 1 commit intomainfrom
refactor/improve-config-defaults

Conversation

@edenreich
Copy link
Copy Markdown
Contributor

Summary

Increase the default QUEUE_CLEANUP_INTERVAL from 30s to 120s to reduce system overhead and improve performance for typical use cases. The more conservative cleanup interval is better suited for production workloads where frequent cleanup is unnecessary.

Changes

  • Updated QueueConfig.CleanupInterval default from 30s to 120s in server/config/config.go
  • Updated all related tests to match new default value
  • Updated examples and documentation to reflect new default

Rationale

A 2-minute cleanup interval provides:

  • Reduced CPU overhead from frequent cleanup operations
  • Better performance for high-throughput scenarios
  • More reasonable default for production environments
  • Still frequent enough to prevent excessive memory usage in most cases

Testing

  • All existing tests pass with updated expectations
  • Pre-commit hooks pass (formatting, linting, tests)
  • No breaking changes to public API

🤖 Generated with Claude Code

Increase the default QUEUE_CLEANUP_INTERVAL from 30s to 120s to reduce
system overhead and improve performance for typical use cases. The more
conservative cleanup interval is better suited for production workloads
where frequent cleanup is unnecessary.

Changes:
- Updated QueueConfig.CleanupInterval default from 30s to 120s
- Updated all related tests to match new default value
- Updated examples and documentation to reflect new default

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@edenreich edenreich merged commit 10e6e94 into main Dec 13, 2025
1 check passed
@edenreich edenreich deleted the refactor/improve-config-defaults branch December 13, 2025 18:09
ig-semantic-release-bot bot added a commit that referenced this pull request Dec 13, 2025
## [0.16.1](v0.16.0...v0.16.1) (2025-12-13)

### ♻️ Improvements

* **config:** Increase default queue cleanup interval to 120s ([#122](#122)) ([10e6e94](10e6e94))

### 📚 Documentation

* Add missing examples to main readme ([e0687d9](e0687d9))

### 🔧 Miscellaneous

* **deps:** Bump common dependecies to their latest and add missing infer cli and mockgen ([81a7221](81a7221))
@ig-semantic-release-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.16.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant