Skip to content

Conversation

@petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented May 15, 2025

Fixes #9180

Previously if the array was empty it would just not touch the deployed schedules.
Providing either triggers: { crons: undefined } or no triggers property in your Wrangler configuration will continue to leave the deployed schedules untouched.


@petebacondarwin petebacondarwin requested a review from a team as a code owner May 15, 2025 14:28
@changeset-bot
Copy link

changeset-bot bot commented May 15, 2025

🦋 Changeset detected

Latest commit: a27875f

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

This PR includes changesets to release 2 packages
Name Type
wrangler 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

@github-actions
Copy link
Contributor

github-actions bot commented May 15, 2025

Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the v3-maintenance branch with your changes. Thank you for helping us keep Wrangler v3 supported!

Depending on your changes, running git rebase --onto v3-maintenance main pbd/wrangler/deletable-crons might be a good starting point.

@github-actions
Copy link
Contributor

github-actions bot commented May 15, 2025

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/15071947758/npm-package-wrangler-9266
Prereleases for other packages:

cloudflare-workers-bindings-extension:

wget https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-cloudflare-workers-bindings-extension-9266 -O ./cloudflare-workers-bindings-extension.0.0.0-vf635504a4.vsix && code --install-extension ./cloudflare-workers-bindings-extension.0.0.0-vf635504a4.vsix

create-cloudflare:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-create-cloudflare-9266 --no-auto-update

@cloudflare/kv-asset-handler:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-cloudflare-kv-asset-handler-9266

miniflare:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-miniflare-9266

@cloudflare/pages-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-cloudflare-pages-shared-9266

@cloudflare/unenv-preset:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-cloudflare-unenv-preset-9266

@cloudflare/vite-plugin:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-cloudflare-vite-plugin-9266

@cloudflare/vitest-pool-workers:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-cloudflare-vitest-pool-workers-9266

@cloudflare/workers-editor-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-cloudflare-workers-editor-shared-9266

@cloudflare/workers-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-cloudflare-workers-shared-9266

@cloudflare/workflows-shared:

npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/15071947758/npm-package-cloudflare-workflows-shared-9266

Note that these links will no longer work once the GitHub Actions artifact expires.

@petebacondarwin petebacondarwin force-pushed the pbd/wrangler/deletable-crons branch 2 times, most recently from 0e860ce to c9b440c Compare May 15, 2025 15:51
@petebacondarwin petebacondarwin added e2e Run wrangler + vite-plugin e2e tests on a PR every-os labels May 15, 2025
@petebacondarwin petebacondarwin force-pushed the pbd/wrangler/deletable-crons branch 3 times, most recently from 8d25ded to 14e67b4 Compare May 16, 2025 11:25
@petebacondarwin petebacondarwin requested a review from vicb May 16, 2025 11:34
Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

Thanks!

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk May 16, 2025
Previously there were occasionally flakes where the module appeared to be unmocked when it was still supposed to be mocked.
@petebacondarwin petebacondarwin force-pushed the pbd/wrangler/deletable-crons branch from 14e67b4 to a27875f Compare May 16, 2025 15:26
@petebacondarwin petebacondarwin added this pull request to the merge queue May 16, 2025
Merged via the queue into main with commit f2a16f1 May 16, 2025
23 of 24 checks passed
@petebacondarwin petebacondarwin deleted the pbd/wrangler/deletable-crons branch May 16, 2025 15:58
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk May 16, 2025
petebacondarwin added a commit that referenced this pull request May 19, 2025
…g should delete deployed cron schedules (#9267)

* test: tighten up metrics module mocking

Previously there were occasionally flakes where the module appeared to be unmocked when it was still supposed to be mocked.

* fix: setting triggers.crons:[] in Wrangler config should delete deployed cron schedules

---------

Co-authored-by: Peter Bacon Darwin <[email protected]>
petebacondarwin added a commit to cloudflare/cloudflare-docs that referenced this pull request May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Run wrangler + vite-plugin e2e tests on a PR

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Remove a schedule in wrangler.jsonc does not remove it in Cloudflare

2 participants