Skip to content

feat: collapse task queues to default by TaskQueueResolver#749

Open
xepozz wants to merge 1 commit into
masterfrom
default-task-queue
Open

feat: collapse task queues to default by TaskQueueResolver#749
xepozz wants to merge 1 commit into
masterfrom
default-task-queue

Conversation

@xepozz
Copy link
Copy Markdown
Collaborator

@xepozz xepozz commented May 14, 2026

What was changed

Let tests engine not create a new task queue on each test file

Why?

This simplifies RR pollers job by reducing number of pollers.
Less task queues, less stream context switch

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@xepozz xepozz requested review from a team, roxblnfk and wolfy-j as code owners May 14, 2026 16:44
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: abc1bbafe0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +41 to +43
if ($worker->pipelineProvider !== null
|| $worker->logger !== null
|| $worker->plugins !== null
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve options-only worker attributes

When a feature uses #[Worker(options: ...)] without also setting a pipeline/logger/plugins, this resolver falls through to the shared default queue unless the test is manually hard-coded in SHARED_QUEUE_EXCLUSIONS. In that case worker.php reuses the already-created default worker, so WorkerFactory::createWorker() never applies that feature's custom WorkerOptions (the existing Deployment test has to be special-cased for this). Treating options like the other Worker fields here would keep future options-only features from silently running with the default worker configuration.

Useful? React with 👍 / 👎.

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