-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQ-605: Extend miniflare's queues simulator to support delayed delivery #5570
MQ-605: Extend miniflare's queues simulator to support delayed delivery #5570
Conversation
🦋 Changeset detectedLatest commit: ce508b7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8999854516/npm-package-wrangler-5570 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5570/npm-package-wrangler-5570 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8999854516/npm-package-wrangler-5570 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8999854516/npm-package-create-cloudflare-5570 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8999854516/npm-package-cloudflare-kv-asset-handler-5570 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8999854516/npm-package-miniflare-5570 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8999854516/npm-package-cloudflare-pages-shared-5570 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8999854516/npm-package-cloudflare-vitest-pool-workers-5570 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
a8086d7
to
1d83a86
Compare
1d06b5b
to
1832c9e
Compare
Approved pending e2e tests (passed, see #5690) |
5adaca9
to
e98a2c8
Compare
e98a2c8
to
ba3ad4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Thanks for updating Miniflare!
I left a couple of nits but not blocking landing if you are keen merge today.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually the change to the configuration API concerns me. We even document it publicly here: https://github.com/cloudflare/workers-sdk/blob/main/packages/miniflare/README.md#queues
ba3ad4a
to
4ae46ff
Compare
@@ -311,8 +311,7 @@ test("retries messages", async (t) => { | |||
const log = new TestLog(t); | |||
const mf = new Miniflare({ | |||
log, | |||
|
|||
queueProducers: { QUEUE: "queue" }, | |||
queueProducers: { QUEUE: { queueName: "queue" } }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is no longer needed, right?
ab34535
to
ee0d6b9
Compare
This patch updates the miniflare's queue broker to support delayed delivery of messages, both when sending the message from a producer and when retrying the message from a consumer. The implementation is based on miniflare's timers, and currently there is no support for specifying the delivery delay in queue settings for a producer.
ee0d6b9
to
ce508b7
Compare
* fix(miniflare): Fix regression introduced in #5570 * Update .changeset/cool-beans-applaud.md Co-authored-by: Edmund Hung <[email protected]> --------- Co-authored-by: Edmund Hung <[email protected]>
This patch updates the miniflare's queue broker to support delayed delivery of messages, both when sending the message from a producer and when retrying the message from a consumer.
The implementation is based on miniflare's timers, and currently there is no support for specifying the delivery delay in queue settings for a producer.
What this PR solves / how to test
Fixes #MQ-605
Author has addressed the following