Skip to content

chore: upgrade utopia-php/queue to 0.17#54

Merged
ChiragAgg5k merged 1 commit intomainfrom
feat-upgrade-queue-0.17
Mar 23, 2026
Merged

chore: upgrade utopia-php/queue to 0.17#54
ChiragAgg5k merged 1 commit intomainfrom
feat-upgrade-queue-0.17

Conversation

@ChiragAgg5k
Copy link
Member

Summary

  • Upgrades utopia-php/queue from 0.16.* to 0.17.*
  • Queue 0.17 replaces static resource callbacks with a DI Container (utopia-php/di)
  • No code changes needed in this repo — the platform only uses Server constructor, Swoole adapter, and hook methods (init, error, shutdown, workerStart, job), all of which remain backward-compatible

Breaking changes in queue 0.17 (not affecting this repo)

  • Server::setResource() changed from static to instance method
  • getResource() / getResources() removed (use container directly)
  • Internal method signatures changed (getArguments, validate) for subclasses
  • Publisher::enqueue() has new optional $priority parameter

Test plan

  • Verify CI passes with updated dependencies
  • Confirm worker initialization works correctly with the new queue version

Upgrade to queue 0.17 which replaces static resource callbacks with
DI Container. No code changes needed in this repo as the platform
only uses Server constructor, Swoole adapter, and hook methods
(init, error, shutdown, workerStart, job) which remain compatible.
@greptile-apps
Copy link

greptile-apps bot commented Mar 23, 2026

Greptile Summary

This PR upgrades utopia-php/queue from 0.16.* to 0.17.* with only the expected composer.json and composer.lock changes — no source code modifications are required.

  • composer.json: version constraint updated from 0.16.* to 0.17.*
  • composer.lock: utopia-php/queue resolved to 0.17.0; utopia-php/di: 0.3.* is now an explicit requirement of the queue package (it was already present in the lock file as a transitive dependency of other packages, so no new package is actually installed)
  • src/Platform/Platform.php only uses Server constructor, Swoole adapter, and hook methods (init, error, shutdown, workerStart, job) — none of which changed in 0.17 — so backward compatibility is confirmed
  • The plugin-api-version in composer.lock changed from 2.6.0 to 2.9.0, indicating the lock file was regenerated with a newer Composer version than was previously used; this is cosmetically inconsistent but functionally harmless

Confidence Score: 5/5

  • This PR is safe to merge — it is a minimal, correct dependency bump with no code changes and confirmed API backward-compatibility.
  • The only changed files are composer.json and composer.lock. The platform source only calls queue APIs (Server constructor, Swoole adapter, hook methods) that are explicitly documented as backward-compatible in 0.17. The new transitive dependency utopia-php/di was already resolved in the lock file before this change. The sole minor concern is the plugin-api-version jump (2.6.0 → 2.9.0), which is informational only.
  • No files require special attention.

Important Files Changed

Filename Overview
composer.json Single-line version constraint bump from utopia-php/queue: 0.16.* to 0.17.*. No other changes.
composer.lock Lock file updated to resolve utopia-php/queue 0.17.0; utopia-php/di: 0.3.* added as an explicit transitive requirement (package was already present in lock). plugin-api-version bumped from 2.6.0 to 2.9.0, indicating a different Composer version was used to generate the lock file.

Reviews (1): Last reviewed commit: "chore: upgrade utopia-php/queue from 0.1..." | Re-trigger Greptile

@ChiragAgg5k ChiragAgg5k merged commit cfe3dc3 into main Mar 23, 2026
7 checks passed
@ChiragAgg5k ChiragAgg5k deleted the feat-upgrade-queue-0.17 branch March 23, 2026 17:20
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