8f3a28effb
* pythonExtension and python runtime improvements * Adding streaming support * Use writeFileSync * Restructure extension docs and add python extension docs * Fix broken link * Update docs/config/extensions/overview.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update docs/config/extensions/aptGet.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update docs/config/extensions/custom.mdx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Add environment variable support --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
30 lines
801 B
TypeScript
30 lines
801 B
TypeScript
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,
|
|
},
|
|
},
|
|
});
|