feat(pipeline-task): logger.

This commit is contained in:
Ivan Li
2021-06-05 19:11:39 +08:00
parent 3ee41ece67
commit 7091f9df6a
6 changed files with 140 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import { RabbitMQModule } from '@golevelup/nestjs-rabbitmq';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { PipelineTaskRunner } from './pipeline-task.runner';
import { spawn } from 'child_process';
import { EXCHANGE_PIPELINE_TASK_FANOUT } from './pipeline-tasks.constants';
@Module({
imports: [
@ -27,6 +28,7 @@ import { spawn } from 'child_process';
type: 'fanout',
options: {
durable: true,
autoDelete: true,
},
},
{
@ -34,6 +36,7 @@ import { spawn } from 'child_process';
type: 'fanout',
options: {
durable: true,
autoDelete: true,
},
},
{
@ -41,6 +44,15 @@ import { spawn } from 'child_process';
type: 'fanout',
options: {
durable: false,
autoDelete: true,
},
},
{
name: EXCHANGE_PIPELINE_TASK_FANOUT,
type: 'fanout',
options: {
durable: false,
autoDelete: true,
},
},
],