Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
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
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 added the skip-v3-pr Skip validation of presence of a v3 backport PR label Aug 11, 2025
@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
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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Peter Bacon Darwin <[email protected]>
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 <[email protected]>
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 skip-v3-pr Skip validation of presence of a v3 backport PR
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants