-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathtrigger.config.ts
More file actions
29 lines (28 loc) · 801 Bytes
/
trigger.config.ts
File metadata and controls
29 lines (28 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { defineConfig } from "@trigger.dev/sdk/v3";
import { pythonExtension } from "@trigger.dev/python/extension";
export default defineConfig({
runtime: "node",
project: "proj_hbsqkjxevkyuklehrgrp",
machine: "small-1x",
maxDuration: 3600,
dirs: ["./src/trigger"],
build: {
extensions: [
pythonExtension({
requirementsFile: "./requirements.txt", // Optional: Path to your requirements file
devPythonBinaryPath: `.venv/bin/python`, // Optional: Custom Python binary path
scripts: ["src/python/**/*.py"], // List of Python scripts to include
}),
],
},
retries: {
enabledInDev: true,
default: {
maxAttempts: 3,
minTimeoutInMs: 1_000,
maxTimeoutInMs: 5_000,
factor: 1.6,
randomize: true,
},
},
});