Skip to content

Remove $retryProducer from WorkerInterface::process() - #336

Merged
vjik merged 2 commits into
masterfrom
remove-retry-producer
Sep 11, 2026
Merged

Remove $retryProducer from WorkerInterface::process()#336
vjik merged 2 commits into
masterfrom
remove-retry-producer

Conversation

@vjik

@vjik vjik commented Sep 11, 2026

Copy link
Copy Markdown
Member
Q A
Is bugfix?
New feature?
Breaks BC? ✔️
Tests pass? ✔️

It was only ever supplied by `SynchronousPushHandler`, so that a message
failed under `SyncQueueProducer` could be re-queued into the producer that
executed it. With no broker behind that producer, such a retry is an
immediate recursive re-execution in the same call stack: it blocks the
caller for the whole attempt budget, grows the stack by one frame per
attempt, and silently drops the backoff, since `DelayEnvelope` needs an
adapter to be honored.

Retry destinations are now resolved uniformly in both modes: an explicit
`targetQueue`, or `QueueProducerProviderInterface` keyed by the execution
queue name. When neither is configured, retry fails with
`InvalidQueueConfigException` instead of degrading silently.

`SynchronousPushHandler` now takes the queue name instead of the producer,
which also removes the self-reference from `SyncQueueProducer`.
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.96%. Comparing base (ae44e2b) to head (810a985).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #336      +/-   ##
============================================
+ Coverage     92.50%   93.96%   +1.45%     
+ Complexity      383      381       -2     
============================================
  Files            59       59              
  Lines          1014     1010       -4     
============================================
+ Hits            938      949      +11     
+ Misses           76       61      -15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vjik
vjik requested a review from a team September 11, 2026 07:08
@vjik vjik added the status:code review The pull request needs review. label Sep 11, 2026
@vjik
vjik merged commit 410dc36 into master Sep 11, 2026
29 checks passed
@vjik
vjik deleted the remove-retry-producer branch September 11, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status:code review The pull request needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant