feat: display containers using the volume

This commit is contained in:
Nicolas Meienberger
2025-09-27 10:16:23 +02:00
parent 481eb13a44
commit 592a8f52b7
10 changed files with 353 additions and 45 deletions

View File

@@ -1,8 +1,8 @@
import { and, eq, or } from "drizzle-orm";
import { getTasks, schedule } from "node-cron";
import { db } from "../../db/db";
import { logger } from "../../utils/logger";
import { volumesTable } from "../../db/schema";
import { schedule, getTasks } from "node-cron";
import { logger } from "../../utils/logger";
import { volumeService } from "../volumes/volume.service";
export const startup = async () => {
@@ -18,7 +18,7 @@ export const startup = async () => {
}
const existingTasks = getTasks();
existingTasks.forEach((task) => task.destroy());
existingTasks.forEach(async (task) => await task.destroy());
schedule("* * * * *", async () => {
logger.info("Running health check for all volumes...");