Current state: the delivery worker's twenty four hour retry window, its backoff floor and ceiling, and its sweep interval, batch and lease are package constants with no seam. NewWorker takes only a queue and a logger. Together they cap the whole install at fifty deliveries every thirty seconds and fix how much subscriber downtime is forgiven.
Proposal: give NewWorker a config struct fed from the environment at boot, with today's values as defaults.
Trigger: an operator widens the retry window and raises the sweep batch without a rebuild.
Current state: the delivery worker's twenty four hour retry window, its backoff floor and ceiling, and its sweep interval, batch and lease are package constants with no seam. NewWorker takes only a queue and a logger. Together they cap the whole install at fifty deliveries every thirty seconds and fix how much subscriber downtime is forgiven.
Proposal: give NewWorker a config struct fed from the environment at boot, with today's values as defaults.
Trigger: an operator widens the retry window and raises the sweep batch without a rebuild.