cloudflare / cloudflare/developer-platform

Wrangler cannot clear Cron Triggers when account is above free-plan limit (10072)

Abierto
#38 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Sin datos de lenguaje
Estrellas
1
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### What happened?

An account has 8 existing Cron Triggers that predate/enforce beyond the current Free-plan limit of 5. I need to reduce the account to 2 triggers. Deploying a Worker with `crons = []` fails with error 10072 instead of removing that Worker's existing schedules. The direct API equivalent also fails:

```http
PUT /accounts//workers/scripts//schedules
Content-Type: application/json

[]
```

Response:

```text
10072: This account has reached the Workers Free limit of 5 cron triggers per account.
```

Because every schedule update is rejected while the account is above the limit, there is no non-destructive way to get back under the limit. Omitting `triggers` leaves schedules unchanged, and the API exposes no individual schedule-delete operation.

### Reproduction

1. Have an account with more than 5 existing triggers (for example, grandfathered schedules).
2. Configure one Worker with:

```toml
[triggers]
crons = []
```

3. Run `wrangler deploy`.
4. The Worker code uploads, but updating `/schedules` fails with 10072.

### Expected behavior

A schedule update that reduces the account-wide trigger count, especially `[]`, should be allowed even when the current count is above the plan limit. Capacity enforcement should reject only net additions.

### Wrangler versions

Observed with Wrangler 4.56.0 and 4.69.0 on Node 22 / macOS. The same failure occurs via the REST API, so this appears to be an API-side limit check rather than Wrangler-only behavior.

### Workaround impact

The only apparent workaround is deleting whole Worker scripts, which also destroys script-scoped secrets and creates avoidable downtime. The Cloudflare documentation says `crons = []` is the supported way to remove all triggers.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con la ruta de despliegue de Wrangler que actualiza las programaciones del Worker y compárala con PUT /accounts//workers/scripts//schedules. Reproduce la respuesta 10072 usando crons = [] para una cuenta que supere el límite; se considera terminado cuando las reducciones, incluida [], tienen éxito, mientras que las adiciones netas siguen estando sujetas al límite.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
node.js
Área
api, cloud
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.