Skip to content

Commit

Permalink
fix(#151): queue change
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh000526 committed Dec 3, 2024
1 parent 171c6c7 commit c413a55
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/backend/src/docker/docker.consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ export class DockerConsumer {
}
const exec = await this.dockerExcution(inputs, mainFileName, container);
let output = '';
console.log('exec시작전');
const stream = await exec.start({ hijack: true, stdin: true });
console.log('exec시작후');
for (const input of inputs) {
console.log('input:', input);
await stream.write(input + '\n');
Expand Down Expand Up @@ -152,14 +150,10 @@ export class DockerConsumer {
(async () => {
try {
for (const input of inputs) {
console.log('input:', input);
await stream.write(input + '\n');
console.log('delay');
await this.delay(100); //각 입력 term
}
console.log('입력 끝');
} catch (err) {
console.error('입력 처리 중 오류:', err.message);
reject(err);
}
})();
Expand Down

0 comments on commit c413a55

Please sign in to comment.