What is the proper way to write crons in a Fresh project?
Importing files calling
Deno.cron()
in the dependency tree of dev.ts
would halt the build process during deno deploy.
Is there a recommended way to add crons to a Fresh project?4 Replies
halt the build process during deno deploy.Do you get any output/logs in the terminal you can share?
The build process quickly finished, it never exits because Deno.cron() is being ran thus hanging on to the event loop
Does it work when you guard the
Deno.cron()
call like this?
yes that’s my current workaround after reading what dev.ts does, would be nice if fresh has a recommended way to do it