denoland / denoland/deploy_feedback

[Bug]: Deno.cron must be called at top-level only.

Open
#699 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### Problem description

I have defined cron jobs in my app.ts, which is the entrypoint into the application. The cron jobs have worked for the past 2 months. Without having changed a single line in that file, I suddenly get the error

```
Deno.cron must be called at top-level only.
```

### Steps to reproduce

Define a cron job on top level.

### Expected behavior

No error

### Environment

Deno 1.45.5

### Possible solution

_No response_

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.