DenoDDeno
Powered by
angelcapitalpA
Denoβ€’2y agoβ€’
1 reply
angelcapitalp

Deno.cron error

Hi I keep having an error on deno deploy where my cron job doesn't seem to execute well in production.

I have server.ts where I import the cron job script:
import "./mongoTestCron.ts";
import "./mongoTestCron.ts";


and inside of the mongoTestCron.ts I have:

Deno.cron("processDocumentsEveryMinute", "* * * * *", async () => {
  await checkAndProcessDocuments();
});
Deno.cron("processDocumentsEveryMinute", "* * * * *", async () => {
  await checkAndProcessDocuments();
});


Works well in local, on deno deploy I get errors:

rror processing document: Error: HTTP error! status: 508
at checkAndProcessDocuments (file:///src/mongoTestCron.ts:51:17)
at eventLoopTick (ext:core/01_core.js:168:7)
at async file:///src/mongoTestCron.ts:87:3
at async ext:deno_cron/01_cron.ts:102:42
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

Deno cron timeout
HekekHHekek / help
17mo ago
Deno cron instrumentation
AbhiPrasadAAbhiPrasad / help
3y ago
Testing Deno cron locally?
macMmac / help
2y ago
Deno.cron not respecting time zones
RqverRRqver / help
16mo ago