Closed sant123 closed 10 months ago
@sant123 Well, I looked at the latest version of deno_cron, in the first parameter you will provide the time and second the callback that will execute the action.
Example:
import { cron } from 'https://deno.land/x/deno_cron/cron.ts'
cron('*/1 * * * *', () => {
console.log('Testing cron @', new Date())
})
Obs: You are unable to enter the cron name
I'm talking about Deno.cron() from Deno API not deno_cron from third party.
This code using Deno.cron works fine:
Deno.cron("Testing cron", "*/1 * * * *", () => {
console.log("Executed!", new Date());
});
The code above makes sense, thank you both!
Version: Deno 1.38.3
Hi, when creating a Cron with special characters the following error is thrown:
Is this expected?
Thanks!