-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathsystems.ts
More file actions
21 lines (20 loc) · 713 Bytes
/
systems.ts
File metadata and controls
21 lines (20 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Meter, Tracer } from "@internal/tracing";
import { Logger } from "@trigger.dev/core/logger";
import { PrismaClient, PrismaReplicaClient } from "@trigger.dev/database";
import { RunQueue } from "../../run-queue/index.js";
import { EventBus } from "../eventBus.js";
import { RunLocker } from "../locking.js";
import { EngineWorker } from "../types.js";
import { RaceSimulationSystem } from "./raceSimulationSystem.js";
export type SystemResources = {
prisma: PrismaClient;
readOnlyPrisma: PrismaReplicaClient;
worker: EngineWorker;
eventBus: EventBus;
logger: Logger;
tracer: Tracer;
meter: Meter;
runLock: RunLocker;
runQueue: RunQueue;
raceSimulationSystem: RaceSimulationSystem;
};