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";


and inside of the mongoTestCron.ts I have:

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
Was this page helpful?