# noConvexTopOfHourCrons

Rule `biome/noConvexTopOfHourCrons`. Disallow scheduling Convex cron jobs at the start of the hour.

- Source: biome
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #498 by reach, #133 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noConvexTopOfHourCrons` | yes | no | group nursery, since 2.6.10 | [docs](https://biomejs.dev/linter/rules/no-convex-top-of-hour-crons/) |

## Code examples

### Incorrect: the rule reports this

```js
crons.hourly("cleanup", { minuteUTC: 0 }, internal.tasks.cleanup);
```

```js
crons.daily("report", { hourUTC: 9, minuteUTC: 0 }, internal.tasks.report);
```

```js
crons.cron("nightly", "0 3 * * *", internal.tasks.nightly);
```

### Correct: the rule accepts this

```js
crons.hourly("cleanup", internal.tasks.cleanup);
crons.daily("nightly", { hourUTC: 3 }, internal.tasks.nightly);
crons.hourly("cleanup", { minuteUTC: 37 }, internal.tasks.cleanup);
crons.cron("nightly", "17 3 * * *", internal.tasks.nightly);
crons.interval("sync", { minutes: 15 }, internal.tasks.sync);
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noConvexTopOfHourCrons": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noConvexTimeOrRandomInQueries](https://lintradar.dev/rules/biome/noConvexTimeOrRandomInQueries.md): Disallow reading the current time or generating random values in Convex queries.
- [biome/noDeprecatedMediaType](https://lintradar.dev/rules/biome/noDeprecatedMediaType.md): Disallow deprecated media types.
- [biome/noConvexQueryFilter](https://lintradar.dev/rules/biome/noConvexQueryFilter.md): Disallow calling `.filter()` on a Convex database query.
- [biome/noDescendingSpecificity](https://lintradar.dev/rules/biome/noDescendingSpecificity.md): Disallow lower-specificity selectors after higher-specificity selectors.
- [biome/noConvexProcessEnv](https://lintradar.dev/rules/biome/noConvexProcessEnv.md): Disallow `process.env` in Convex functions.
- [biome/noDrizzleDeleteWithoutWhere](https://lintradar.dev/rules/biome/noDrizzleDeleteWithoutWhere.md): Require `.where()` to be called when using `.delete()` with Drizzle ORM.

---

Web page: https://lintradar.dev/rules/biome/noConvexTopOfHourCrons. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
