MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / execute

Function execute

references/v3-catalog/src/trigger/binaries.ts:88–103  ·  view source on GitHub ↗
(file: string, args?: readonly string[])

Source from the content-addressed store, hash-verified

86}
87
88async function execute(file: string, args?: readonly string[]) {
89 const { execa } = await import("execa");
90
91 logger.log(`execute: ${basename(file)}`, { args });
92 const childProcess = await execa(file, args);
93
94 if (childProcess.exitCode !== 0) {
95 logger.error("Non-zero exit code", {
96 stderr: childProcess.stderr,
97 stdout: childProcess.stdout,
98 });
99 throw new Error("Non-zero exit code");
100 }
101
102 return childProcess;
103}
104
105async function probeVideo() {
106 const ffprobe = await getFfprobe();

Callers 4

ffprobeVersionFunction · 0.85
ffmpegVersionFunction · 0.85
probeVideoFunction · 0.85
convertVideoFunction · 0.85

Calls 2

logMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…