Skip to content

Commit 190f211

Browse files
committed
Time took debug DM
1 parent 6ce3e8d commit 190f211

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/jobs.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export function registerJobs() {
1212
new Cron("10 * * * *", async () => process.exit());
1313

1414
new Cron("* * * * *", async () => {
15+
const minuteCronStart = performance.now();
1516
track("job-sync");
1617

1718
app.logger.debug("Syncing...");
@@ -222,5 +223,10 @@ export function registerJobs() {
222223
);
223224
},
224225
);
226+
227+
await app.client.chat.postMessage({
228+
text: `minutesyncjob took ${performance.now() - minuteCronStart} ms`,
229+
channel: "U03DFNYGPCN", // @Malted
230+
});
225231
});
226232
}

0 commit comments

Comments
 (0)