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

Cron throwing error execution must be a function #405

Open
chaitanya1248 opened this issue Oct 18, 2023 · 0 comments
Open

Cron throwing error execution must be a function #405

chaitanya1248 opened this issue Oct 18, 2023 · 0 comments

Comments

@chaitanya1248
Copy link

I was trying to integrate node cron to execute in my app.

I followed the simplest example mentioned on the docs to execute a function every second. Here is the snippet:
Cron.schedule('3 * * * * *',()=>{console.log('runs every 3 seconds'); )}

Hoping it would run every 3 seconds. But i get an error saying "execution must be a function".

Using version 3.0.2

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