Skip to content

Conversation

@petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented May 15, 2025

Summary

If the user provides an empty array in their Wrangler configuration for Cron Triggers then Wrangler will remove all deployed triggers rather than leaving them untouched.

Blocked on cloudflare/workers-sdk#9266

Documentation checklist

@hyperlint-ai
Copy link
Contributor

hyperlint-ai bot commented May 15, 2025

Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.


PR Change Summary

Updated Cron Triggers behavior in Wrangler configuration to ensure that an empty array removes all deployed triggers, while undefined properties leave existing triggers intact.

  • Modified documentation to clarify that an empty crons array removes all Cron Triggers.
  • Specified that triggers or crons being undefined retains current Cron Triggers.
  • Updated examples to reflect the new behavior of Cron Triggers management.

Modified Files

  • src/content/docs/workers/configuration/cron-triggers.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

@petebacondarwin petebacondarwin changed the title update Cron Triggers to match expected behaviour in https://github.com/cloudflare/workers-sdk/pull/9266 update Cron Triggers to match expected behaviour May 15, 2025
@petebacondarwin petebacondarwin changed the title update Cron Triggers to match expected behaviour Update Wrangler config Cron Triggers to match expected behaviour May 15, 2025
@petebacondarwin petebacondarwin enabled auto-merge (squash) May 27, 2025 13:21
@petebacondarwin petebacondarwin merged commit ebe0324 into cloudflare:production May 28, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants