Skip to content

Commit

Permalink
fix: aliyun task worker won't have stderr
Browse files Browse the repository at this point in the history
Signed-off-by: zxypro1 <[email protected]>
  • Loading branch information
zxypro1 committed Nov 26, 2024
1 parent 0af9a22 commit 0de9d59
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/engine/src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ You can still use them now, but we suggest to modify them.`)
});

// Listen to the 'data' event of stderr. Append the data chunk to the logger and the stderr array.
// 20241125: aliyun task worker wouldn't output stderr
if (utils.getCurrentEnvironment() !== 'app_center'){
cp.stderr.on('data', (chunk: Buffer) => {
this.logger.append(chunk.toString());
stderr.push(chunk);
});
}
cp.stderr.on('data', (chunk: Buffer) => {
this.logger.append(chunk.toString());
// 20241125: aliyun task worker wouldn't output stderr
if (utils.getCurrentEnvironment() !== 'app_center'){
stderr.push(chunk)
}
});

// Listen to the 'exit' event of the command process.
// If the process exits with a code of 0, resolve the promise.
Expand Down

0 comments on commit 0de9d59

Please sign in to comment.