You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So that you can create cron. For example, you need to clear outdated data. for example, the location of the file `serverver/tasks/clear.ts'. It implements the following code
exportdefaultdefineCronHandler('"* * * * *"',()=>{console.log("This will print once a minute.");})
If during the build, it determines the preset depending on which one is selected. If Deno, then the transfer of Deno.cron() is performed, and if Node, then using the setInterval shell function or the ready-made node-cron library
This is the only cron I need inside the project that will do something.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So that you can create cron. For example, you need to clear outdated data. for example, the location of the file `serverver/tasks/clear.ts'. It implements the following code
If during the build, it determines the preset depending on which one is selected. If Deno, then the transfer of Deno.cron() is performed, and if Node, then using the setInterval shell function or the ready-made
node-cron
libraryThis is the only cron I need inside the project that will do something.
Beta Was this translation helpful? Give feedback.
All reactions