Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid cron schedule #23848

Closed
Lorenzo0111 opened this issue May 16, 2024 · 1 comment
Closed

Invalid cron schedule #23848

Lorenzo0111 opened this issue May 16, 2024 · 1 comment

Comments

@Lorenzo0111
Copy link

Version: Deno 1.43.3

When I run the following code with deno run --unstable-cron test.ts I get an exception but the cron expression is correct.
Error:

error: Uncaught (in promise) TypeError: Invalid cron schedule
Deno.cron("Example cron", "0 * 7-12 * * *", () => {
     ^
    at Object.cron (ext:deno_cron/01_cron.ts:75:15)
    at file:///home/lorenzo/projects/supplenze-bot/test.ts:1:6

Code:

Deno.cron("Example cron", "0 * 7-12 * * *", () => {
  console.log("Hello world");
});
@Lorenzo0111
Copy link
Author

Found that the expression was wrong

@Lorenzo0111 Lorenzo0111 closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant