Skip to content

refactor(queue): move config to per-subscription SubscriptionConfig#38

Merged
behinddwalls merged 1 commit into
mainfrom
preetam/queue-config-split
Feb 22, 2026
Merged

refactor(queue): move config to per-subscription SubscriptionConfig#38
behinddwalls merged 1 commit into
mainfrom
preetam/queue-config-split

Conversation

@behinddwalls
Copy link
Copy Markdown
Collaborator

@behinddwalls behinddwalls commented Feb 21, 2026

Summary

Why?

Different subscriptions may need different settings (timeouts, retry
policies, batch sizes). Moving config from queue-level to Subscribe()
enables per-topic customization without creating separate Queue instances.

What?

  • Add SubscriptionConfig with SubscriberName, ConsumerGroup, polling,
    retry, and DLQ settings
  • Remove queue-level Config from SQL queue (now empty Params)
  • Update Subscriber.Subscribe() to accept SubscriptionConfig
  • Pass config parameters to stores instead of reading from struct fields
  • Update e2e tests to use new subscription-based config pattern
  • Fix: use fresh context with timeout for graceful lease release on shutdown
    to prevent context.Canceled errors leaving partitions orphaned

Test Plan

bazel test and ran e2e queue tests

@behinddwalls behinddwalls marked this pull request as ready for review February 21, 2026 09:31
@behinddwalls behinddwalls requested review from a team and sbalabanov as code owners February 21, 2026 09:31
Different subscriptions may need different settings (timeouts, retry
policies, batch sizes). Moving config from queue-level to Subscribe()
enables per-topic customization without creating separate Queue instances.

- Add SubscriptionConfig with SubscriberName, ConsumerGroup, polling,
  retry, and DLQ settings
- Remove queue-level Config from SQL queue (now empty Params)
- Update Subscriber.Subscribe() to accept SubscriptionConfig
- Pass config parameters to stores instead of reading from struct fields
- Update e2e tests to use new subscription-based config pattern
- Fix: use fresh context with timeout for graceful lease release on shutdown
  to prevent context.Canceled errors leaving partitions orphaned
@behinddwalls behinddwalls force-pushed the preetam/queue-config-split branch from 54d1d09 to 7d17391 Compare February 21, 2026 09:55
@behinddwalls behinddwalls merged commit f2b4750 into main Feb 22, 2026
1 check passed
@behinddwalls behinddwalls deleted the preetam/queue-config-split branch June 2, 2026 18:39
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