mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-03 04:18:16 +03:00
fix: hhahahahahahaahahhHAHAAHHAAHAHAHAHA
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable no-await-in-loop */
|
||||
import type { Database } from "tachi-db";
|
||||
|
||||
import { getCronTaskDefinitions } from "#lib/jobs/cron/cron-registry";
|
||||
@@ -158,9 +159,11 @@ export async function runCronTickOnce(): Promise<void> {
|
||||
})
|
||||
.where("cron_task_execution.id", "=", execRow.id)
|
||||
.execute();
|
||||
(def.quiet ? log.debug : log.info)(
|
||||
`Cron task ${def.id} completed for fire ${scheduledAtIso}.`,
|
||||
);
|
||||
if (def.quiet) {
|
||||
log.debug(`Cron task ${def.id} completed for fire ${scheduledAtIso}.`);
|
||||
} else {
|
||||
log.info(`Cron task ${def.id} completed for fire ${scheduledAtIso}.`);
|
||||
}
|
||||
} catch (err) {
|
||||
const message = err instanceof Error ? err.message : String(err);
|
||||
log.error({ err }, `Cron task ${def.id} failed.`);
|
||||
|
||||
Reference in New Issue
Block a user