mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
chore: biome
This commit is contained in:
@@ -5,8 +5,8 @@ import { zValidator } from "@hono/zod-validator";
|
||||
import { logger } from "./logger";
|
||||
import { cleanQueue, getJobRepeatable, removeJob, scheduleJob } from "./queue";
|
||||
import { jobQueueSchema } from "./schema";
|
||||
import { firstWorker, secondWorker } from "./workers";
|
||||
import { initializeJobs } from "./utils";
|
||||
import { firstWorker, secondWorker } from "./workers";
|
||||
|
||||
const app = new Hono();
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Queue, type RepeatableJob } from "bullmq";
|
||||
import IORedis from "ioredis";
|
||||
import { logger } from "./logger";
|
||||
import type { QueueJob } from "./schema";
|
||||
import IORedis from "ioredis";
|
||||
|
||||
export const connection = new IORedis(process.env.REDIS_URL || "", {
|
||||
maxRetriesPerRequest: null,
|
||||
|
||||
@@ -9,11 +9,11 @@ import {
|
||||
runPostgresBackup,
|
||||
} from "@dokploy/server";
|
||||
import { db } from "@dokploy/server/dist/db";
|
||||
import { backups, server } from "@dokploy/server/dist/db/schema";
|
||||
import { eq } from "drizzle-orm";
|
||||
import { logger } from "./logger";
|
||||
import type { QueueJob } from "./schema";
|
||||
import { scheduleJob } from "./queue";
|
||||
import { backups, server } from "@dokploy/server/dist/db/schema";
|
||||
import type { QueueJob } from "./schema";
|
||||
|
||||
export const runJobs = async (job: QueueJob) => {
|
||||
try {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { type Job, Worker } from "bullmq";
|
||||
import { logger } from "./logger";
|
||||
import { connection } from "./queue";
|
||||
import type { QueueJob } from "./schema";
|
||||
import { runJobs } from "./utils";
|
||||
import { connection } from "./queue";
|
||||
import { logger } from "./logger";
|
||||
|
||||
export const firstWorker = new Worker(
|
||||
"backupQueue",
|
||||
|
||||
Reference in New Issue
Block a user