DenoDDeno
Powered by
ruanR
Denoβ€’12mo agoβ€’
5 replies
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');
});
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
API running

but not the console log on the cron lambda, why is it not getting called?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to use ErrorBoundary
developershourovDdevelopershourov / help
2y ago
How to use crypto generateKeyPairSync?
edo999Eedo999 / help
2y ago
How to use KV Connect?
HiroHHiro / help
3y ago
CRON on Deploy
KotkoroidKKotkoroid / help
15mo ago