Skip to content

Worker: own time-limit listener for Symfony 8.1+ (v0.4.0) - #32

Merged
f3l1x merged 6 commits into
masterfrom
chore/release-prep
Oct 2, 2026
Merged

f3l1x merged 6 commits into
masterfrom
chore/release-prep

Conversation

@f3l1x

@f3l1x f3l1x commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow-up to v0.3.0, which was tagged from master. This PR goes into the next release.

  • Worker: adds Contributte\Messenger\EventListener\StopWorkerOnTimeLimitListener. Symfony 8.1 deprecated its own listener in favour of the per-command time_limit worker option, and that option can't be set globally. The new listener keeps messenger.worker.timeLimit working on Symfony 7.4 and 8.x without deprecation notices. It has unit tests, and the worker DI test is updated.
  • Code: BuilderMan uses findByTag() directly, with the tag values typed as array<string, string>. RoutingPass gets its transport names from BuilderMan. The redundant priority fallback in HandlerPass is removed, because AsMessageHandler::$priority is a non-nullable int.
  • Composer: opens 0.4.x-dev.
  • Docs: the README version table has a Symfony column, with ^0.3 as stable and ^0.4 as dev.

QA

  • Local (PHP 8.5.9, symfony/messenger 8.1.8): make cs, make phpstan and make tests (24 tests) all pass.
  • CI (Codesniffer, Coverage, Phpstan, Nette Tester) passes on the release-prep commits.

Proposed version: v0.4.0

Draft release notes (v0.3.0...v0.4.0)

Features

  • Worker: bundled StopWorkerOnTimeLimitListener, so worker.timeLimit keeps working on Symfony 8.1+ without deprecations.

Fixes

  • BuilderMan: typed findByTag() results (fixes phpstan on current dependencies).
  • HandlerPass: removed the redundant priority fallback.

Docs

  • Version table now includes Symfony support.

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.90%. Comparing base (bb4968f) to head (3330325).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   95.83%   95.90%   +0.06%     
==========================================
  Files          25       26       +1     
  Lines         648      659      +11     
==========================================
+ Hits          621      632      +11     
  Misses         27       27              

☔ 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.

@f3l1x f3l1x changed the title Release prep: Symfony 7.4 / 8.x support (v0.3) Worker: own time-limit listener for Symfony 8.1+ (v0.4.0) Oct 2, 2026
Comment thread src/DI/Utils/BuilderMan.php Outdated
@f3l1x
f3l1x merged commit ca5a43d into master Oct 2, 2026
20 checks passed
@f3l1x
f3l1x deleted the chore/release-prep branch October 2, 2026 21:41
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.

1 participant