Repository navigation
chore(deps): take utopia-php/queue 6.0.0 - #13841
Merged
Merged
Conversation
- getFailedCount() joins Publisher\Synchronous. getQueueSize() keeps its name
and signature and delegates to it, so no caller moves; MockPublisher, the one
class here that implements the interface, gains the method. It answers 0:
that double records what was published and nothing it holds has failed.
- A TypeError or ValueError escaping a handler is now terminal. On a Redis
queue the message still lands on the failed list, so a retry sweep reaches it
exactly as before.
- A terminal message on Redis stays on the failed list rather than moving to
dead, where nothing would have read it.
Worth a look before release: /v1/health/queue/failed/{name} reports
getFailedCount(), which now sums the failed, dead and poison lists rather than
the failed list alone. A deployment with messages parked on the other two sees
that number rise on upgrade without a new failure, and the endpoint asserts a
threshold against it.
rc25 is the first platform tag that allows queue 6.
levivannoort
marked this pull request as ready for review
September 23, 2026 14:13
Contributor
|
# Conflicts: # composer.json # composer.lock
loks0n
approved these changes
Sep 23, 2026
# Conflicts: # composer.lock
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Takes
utopia-php/queue6.0.0. Also pinsutopia-php/platformto1.0.0-rc25, the first platform tag that allows queue 6 — rc24 requiredutopia-php/queue: ^5.0.0and held the whole chain back. utopia-php/monorepo#324 moved that constraint to^6.0.0.What changes here
getFailedCount()joinsPublisher\Synchronous. It reports everything a queue could not get through: on Redis thefailed,deadandpoisonlists together.getQueueSize()keeps its name and signature and delegates to it, so no caller moves.MockPublisheris the only class in this repo that implements the interface; it gains the method, answering0— that double records what was published, and nothing it holds has failed.FakeConsumerimplementsConsumer, which is unchanged.A
TypeErrororValueErrorescaping a handler is terminal. The payload and the signature disagree, and they will disagree identically on every delivery, so the attempts after the first only spend the redelivery budget to reach the conclusion the first one reached. On Redis — which is where this ships — the message still lands on thefailedlist, so a retry sweep reaches it exactly as before. The change bites on JetStream, where every further attempt would hold amaxAckPendingslot for the length of its backoff.Deliberately narrow: every other
\Errorkeeps its budget.OutOfMemoryErrorand the stack overflow say the host was short at that moment, not that the work is impossible.A terminal message on Redis stays on
failedrather than moving todead. Nothing popsdead—retry()readsfailedonly — so the old routing quietly meant unrecoverable on this transport. Redis has no ack ceiling to protect, so the verdict bought nothing there and cost the only recovery path there is.Worth a look before release
/v1/health/queue/failed/{name}reportsgetFailedCount()and asserts a threshold against it. That number now sums three lists instead of one, so a deployment with messages parked ondeadorpoisonsees it rise on upgrade without a single new failure — anddeadfills on its own, sinceAdapter\Swoolerunsreap()on a timer and it parks there pastmaxAttempts.For scale: one Appwrite Cloud region holds 115 such messages on a single queue, accumulated over eight days. Self-hosted deployments watching that endpoint with a tight threshold will want the release notes to say this.