Skip to content

🐛 BUG: crons = [] in wrangler.toml doesn't remove cron triggers #5450

Description

@risu729

Which Cloudflare product(s) does this pertain to?

Wrangler core

What version(s) of the tool(s) are you using?

3.41.0

What version of Node are you using?

21.6.1

What operating system and version are you using?

WSL2 (Ubuntu 22.04.4 LTS)

Describe the Bug

Observed behavior

Cron triggers are not removed even if crons = [] set in wrangler.toml.

Expected behavior

Cron triggers are removed as documented here.
https://developers.cloudflare.com/workers/configuration/cron-triggers/#via-wranglertoml-1

Steps to reproduce

See the minimal reproduction git repo.

How to reproduce the bug:

  1. npx wrangler deploy --triggers "* * * * *"
  2. npx wrangler deploy

If you see the triggers tab in the dashboard, * * * * * is still there.

Please provide a link to a minimal reproduction

https://github.com/risu729/wrangler-crons-test

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions