Open NikoLandgraf opened 3 months ago
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.
Define a cron job on top level.
No error
Deno 1.45.5
No response
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
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