fp/services/our/graphile.config.ts
CJ_Clippy c386e48dcf
Some checks failed
ci / build (push) Failing after 1s
ci / Tests & Checks (push) Failing after 1s
add buttplug vjs plugin
2025-07-13 01:04:45 -08:00

24 lines
669 B
TypeScript

import { WorkerPreset } from "graphile-worker"
import { env } from "./src/config/env"
import path from 'node:path'
const __dirname = import.meta.dirname;
const preset: GraphileConfig.Preset = {
extends: [WorkerPreset],
worker: {
connectionString: env.DATABASE_URL,
maxPoolSize: 10,
pollInterval: 2000,
preparedStatements: true,
schema: "graphile_worker",
crontabFile: "crontab",
concurrentJobs: 1,
fileExtensions: [".cjs"],
taskDirectory: path.join(__dirname, 'dist', 'tasks'),
// to log debug messages, set GRAPHILE_LOGGER_DEBUG=1 in env @see https://worker.graphile.org/docs/library/logger
},
};
export default preset