Skip to content

Commit

Permalink
build(#151): release deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh000526 committed Dec 3, 2024
1 parent 81af572 commit 4268fad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/docker/docker.pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class DockerContainerPool implements OnApplicationBootstrap {
AttachStdout: true,
AttachStderr: true,
Env: ['NODE_DISABLE_COLORS=true', 'TERM=dumb'],
name: `froxy-run${i + 1}`,
name: `always${i + 1}`,
HostConfig: {
Memory: 1024 * 1024 * 1024,
MemorySwap: 1024 * 1024 * 1024
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/docker/docker.producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { DockerContainerPool } from './docker.pool';
export class DockerProducer implements OnApplicationBootstrap {
cnt = 0;
constructor(
@InjectQueue('docker-queue')
@InjectQueue('always-queue')
private readonly dockerQueue: Queue,
private dockerContainerPool: DockerContainerPool
) {}
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/history/history.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ export class HistoryService {
const result = await this.dockerProducer.getDocker(gitToken, lotusId, commitId, execFilename, inputs);
await this.historyRepository.update(historyId, { status: HISTORY_STATUS.SUCCESS, result });
} catch (error) {
console.error(`HTTP ${404} Error: ${error.message} | Path: lotus/${lotusId}/history/${historyId}`);
await this.historyRepository.update(historyId, {
status: HISTORY_STATUS.ERROR,
result: error.message
});
throw error;
}
}

Expand Down

0 comments on commit 4268fad

Please sign in to comment.