Skip to content

Commit

Permalink
fix(#151): release deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh000526 committed Dec 3, 2024
1 parent 3e7e94f commit c02e277
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/docker/docker.consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface GistFile {
attr: GistFileAttributes;
}

@Processor('always-queue')
@Processor('docker-queue')
@Injectable()
export class DockerConsumer {
queue_num = false;
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/docker/docker.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { GistModule } from '@/gist/gist.module';
imports: [
GistModule,
BullModule.registerQueue({
name: 'always-queue'
name: 'docker-queue'
})
],
controllers: [DockerController],
Expand Down
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 @@ -17,7 +17,7 @@ export class DockerContainerPool implements OnApplicationBootstrap {
const containersToDelete = await this.docker.listContainers({ all: true });
await Promise.all(
containersToDelete
.filter((container) => container.Names.some((name) => name.startsWith('/always')))
.filter((container) => container.Names.some((name) => name.startsWith('/froxy-run')))
.map(async (container) => {
const removeContainer = await this.docker.getContainer(container.Id);
await removeContainer.remove({ force: true });
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 @@ -8,7 +8,7 @@ import { DockerContainerPool } from './docker.pool';
export class DockerProducer implements OnApplicationBootstrap {
cnt = 0;
constructor(
@InjectQueue('always-queue')
@InjectQueue('docker-queue')
private readonly dockerQueue: Queue,
private dockerContainerPool: DockerContainerPool
) {}
Expand Down

0 comments on commit c02e277

Please sign in to comment.