Skip to content

fix(wrangler) remove putQueue call when deploying a worker with queue producer binding#10288

Merged
petebacondarwin merged 5 commits intocloudflare:mainfrom
tgarg-cf:tgarg/remove-putQueue-call-queue-producer-binding
Aug 11, 2025
Merged

fix(wrangler) remove putQueue call when deploying a worker with queue producer binding#10288
petebacondarwin merged 5 commits intocloudflare:mainfrom
tgarg-cf:tgarg/remove-putQueue-call-queue-producer-binding

Conversation

@tgarg-cf
Copy link
Contributor

@tgarg-cf tgarg-cf commented Aug 8, 2025

Fixes #MQ-861

Removed a call to putQueue when deploying a worker with a queue producer binding.
This is needed because a worker should not be able to affect queue level settings. Additionally, when having multiple producers, the settings will be determined by the last deployed producer which also leads to issues.


  • Tests
    • Tests included (changed tests are updated)
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: change does not reflect externally. (optionally start deprecating "delivery_delay" as now, setting it will not do anything
  • Wrangler V3 Backport

@tgarg-cf tgarg-cf requested a review from a team as a code owner August 8, 2025 18:32
@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2025

🦋 Changeset detected

Latest commit: 08b57fc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
wrangler Patch
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tgarg-cf tgarg-cf changed the title Tgarg/remove put queue call queue producer binding fix(wrangler) remove putQueue call when deploying a worker with queue producer binding Aug 8, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Aug 8, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Aug 8, 2025

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@10288

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@10288

miniflare

npm i https://pkg.pr.new/miniflare@10288

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@10288

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@10288

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@10288

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@10288

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@10288

wrangler

npm i https://pkg.pr.new/wrangler@10288

commit: 08b57fc

Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

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

Love it!

Made a suggestion about the changeset wording - but up to you whether you want to adopt it or a variant.

Thank you for iterating on this.

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Aug 8, 2025
@petebacondarwin petebacondarwin force-pushed the tgarg/remove-putQueue-call-queue-producer-binding branch from 19749c5 to 48e1a15 Compare August 9, 2025 12:14
@petebacondarwin petebacondarwin self-assigned this Aug 11, 2025
@petebacondarwin petebacondarwin force-pushed the tgarg/remove-putQueue-call-queue-producer-binding branch 3 times, most recently from 72e60cc to a51eef1 Compare August 11, 2025 16:42
@petebacondarwin petebacondarwin force-pushed the tgarg/remove-putQueue-call-queue-producer-binding branch from a51eef1 to 08b57fc Compare August 11, 2025 17:36
@petebacondarwin petebacondarwin merged commit 42aafa3 into cloudflare:main Aug 11, 2025
78 of 84 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Aug 11, 2025
@workers-devprod workers-devprod added the contribution [Holopin] Recognizes an open-source contribution, big or small label Aug 11, 2025
@holopin-bot
Copy link

holopin-bot bot commented Aug 11, 2025

Congratulations @tgarg-cf, the maintainer of this repository has issued you a holobyte! Here it is: https://holopin.io/holobyte/cme7jii3v094807ie0h29ghyw

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

petebacondarwin added a commit that referenced this pull request Aug 12, 2025
… producer binding (#10288)

* MQ-861: Remove putQueue call when setting queue producer binding

* remove calls to mockPutQueueById in tests

* Update .changeset/chatty-pens-sniff.md

Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com>

* try to ensure that the required deploy workers job is not skipped

* test: add a waitFor around log check for email bindings

---------

Co-authored-by: Pete Bacon Darwin <pete@bacondarwin.com>
Co-authored-by: Peter Bacon Darwin <pbacondarwin@cloudflare.com>
petebacondarwin added a commit that referenced this pull request Aug 14, 2025
… producer binding (#10288) (#10330)

* MQ-861: Remove putQueue call when setting queue producer binding

* remove calls to mockPutQueueById in tests

* Update .changeset/chatty-pens-sniff.md



* try to ensure that the required deploy workers job is not skipped

* test: add a waitFor around log check for email bindings

---------

Co-authored-by: tgarg-cf <tgarg@cloudflare.com>
penalosa added a commit that referenced this pull request Jan 29, 2026
The delivery_delay setting in [[queues.producers]] was silently having no effect
since PR #10288 removed the functionality. This adds a deprecation warning to inform
users that queue-level settings should be configured using 'wrangler queues update'
instead.

Fixes #10286
petebacondarwin pushed a commit that referenced this pull request Feb 3, 2026
The delivery_delay setting in [[queues.producers]] was silently having no effect
since PR #10288 removed the functionality. This adds a deprecation warning to inform
users that queue-level settings should be configured using 'wrangler queues update'
instead.

Fixes #10286
petebacondarwin pushed a commit that referenced this pull request Feb 4, 2026
The delivery_delay setting in [[queues.producers]] was silently having no effect
since PR #10288 removed the functionality. This adds a deprecation warning to inform
users that queue-level settings should be configured using 'wrangler queues update'
instead.

Fixes #10286
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution [Holopin] Recognizes an open-source contribution, big or small

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants