question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 BUG: Incorrect "too many crons" error

See original GitHub issue

What version of Wrangler are you using?

2.0.24

What operating system are you using?

Linux

Describe the Bug

I’m wrongly getting workers.api.error.too_many_crons [code: 10072].

I’m on the Workers free plan, which has a maximum of 5 Cron Triggers per account. I have 4 already active Cron Triggers divided over 2 Workers, one script has 3 Cron Triggers and the other one has 1 Cron Trigger. I’m trying to publish the Worker that has 3 Cron Trigger again (just a normal code update) and I get that " too many crons" error.

My theory is that it sees that my account currently has 4 total Cron Triggers. Then when I want to upload the Worker it thinks 3 more Cron Triggers are getting added, thus 4 + 3 > 5. In fact, the 3 Cron Triggers in the script I’m trying to upload are already on my account, there are no new Cron Triggers.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
penalosacommented, Aug 23, 2022

Just to update here—we’ve confirmed this is a issue and are working on fixing it (as you suspected, the issue is with the addition of old triggers and replaced triggers)

0reactions
penalosacommented, Sep 2, 2022

This should be fixed going forward as of the next release

Read more comments on GitHub >

github_iconTop Results From Across the Web

High memory and "can't fork" on heavy long-lived cron daemon
The bug would not prevent the error you're seeing, however, there is a second fork() which, if it fails, will block that part...
Read more >
CRON no longer works after update - WordPress.org
After the recent update of wordpress I am now seeing these errors in my logs. Never had them before. It's seems the cron...
Read more >
Why is my crontab not working, and how can I troubleshoot it?
A frequent problem users make with crontab entries is that they forget that cron runs in a different environment than they do as...
Read more >
Cron job troubleshooting guide - Cronitor
The common reasons cron jobs fail · Schedule errors are easy to make · Cron has subtle environment differences · There is a...
Read more >
How To Solve WP-Cron Job Errors Caused By WordPress ...
Troubleshooting WP Cron Errors: · Using the wrong PHP version in the code for the manual cron job · Reinstalling or using a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found