First Commit. Duplicate bunext-sqlite preset
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import bunext from "@moduletrace/bunext";
|
||||
import cronHeartbeat from "./heartbeat";
|
||||
import registerCronJob from "./register-cron-job";
|
||||
|
||||
export default function cron() {
|
||||
if (process.env.NODE_ENV == "production" && !process.env.MAIN_SERVER) {
|
||||
return;
|
||||
}
|
||||
|
||||
bunext.bunextLog.watch(`Running Cron Services ...`);
|
||||
|
||||
registerCronJob({
|
||||
title: "heartbeat",
|
||||
schedule: "@hourly",
|
||||
task: cronHeartbeat,
|
||||
run_on_start: true,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user