Skip to content

Conversation

@thrawn01
Copy link
Contributor

Purpose

Clean up dead code and stale TODO comments from the codebase. This removes the unimplemented retry flag from QueueClear and cleans up outdated TODO comments in test files.

Implementation

  • Remove the retry flag from QueueClearRequest proto and internal types - it was never implemented and retry items are functionally identical to scheduled items (both use EnqueueAt)
  • Update validation in logical.go to only check queue and scheduled flags
  • Update documentation comments to clarify that scheduled flag clears retry items
  • Remove stale TODO comments from partition_test.go and queue_test.go
  • Add implementation plan for shared PostgreSQL container optimization

- Remove stale TODO comments from partition_test.go and queue_test.go
- Add implementation plan for shared PostgreSQL container optimization
The retry flag was defined but never implemented. Retry items and
scheduled items are functionally identical (both use EnqueueAt field),
so the scheduled flag already handles clearing retry items.

- Remove retry field from QueueClearRequest proto message
- Remove Retry field from internal ClearRequest type
- Update validation to check only queue and scheduled flags
- Update comments to clarify scheduled includes retry items
@thrawn01 thrawn01 merged commit a7a7c26 into main Dec 31, 2025
1 check passed
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