We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b69eea0 commit d5e50e4Copy full SHA for d5e50e4
src/_common/tasks/executor.task.ts
@@ -2,7 +2,7 @@ import { spawn } from 'node:child_process';
2
import { Job } from 'bullmq';
3
import { ExecutorResponseInterface } from '../interfaces/executor-response.interface';
4
import { ExecutorConfigInterface } from '../interfaces/executor-config.interface';
5
-import { join } from 'path';
+import { join, dirname } from 'path';
6
7
function convertNullToEmptyString(obj) {
8
if (obj === null) {
@@ -39,6 +39,7 @@ export async function executorTask(
39
const child = spawn(join(command), {
40
shell: options?.shell ?? true,
41
stdio: 'pipe',
42
+ cwd: dirname(command)
43
});
44
45
child.stdin.write(jobDataArg);
0 commit comments