ruanR
Deno10mo ago
ruan

How to use cron?

I have this test repo on deno deploy:
import express from 'express'
import { cron } from "https://deno.land/x/deno_cron/cron.ts";
const app  = express()

app.listen(3001, () => 
{ 
    console.log('\u{1F680} API running!') 
})

cron("*/60 * * * * *", () => {
  console.log('ok');
});
It does print
API running

but not the console log on the cron lambda, why is it not getting called?
Was this page helpful?