File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { InternalLogger } from './core/logger/internal.logger';
1111 logLevel : getLogLevel ( cfg ?. application ?. logLevel ) ,
1212 mongoose : cfg ?. mongoose ,
1313 } ) ;
14+ logger . log ( `Starting CLI with log level <${ cfg ?. application ?. logLevel || 'info' } >` ) ;
1415 const app = await CommandFactory . runWithoutClosing ( CliModule , {
1516 logger,
1617 errorHandler : ( err ) => {
Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ export class BackendsService extends AbstractQueueProcessor {
2929 public async onModuleInit ( ) {
3030 await super . onModuleInit ( ) ;
3131
32+ if ( process . env [ 'npm_lifecycle_event' ] === 'console' ) {
33+ this . logger . debug ( 'QUEUE CHECKER IGNORED, cli mode detected !' ) ;
34+ return ;
35+ }
36+ this . logger . warn ( 'ENABLE QUEUE CHECKER !' ) ;
37+
3238 const jobsCompleted = await this . _queue . getCompleted ( ) ;
3339 for ( const job of jobsCompleted ) {
3440 const isSyncedJob = await this . jobsService . model . findOneAndUpdate < Jobs > (
You can’t perform that action at this time.
0 commit comments