File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed
Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 8484 },
8585 "pkg" : {
8686 "assets" : " package.json"
87- }
87+ },
88+ "packageManager" : " yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
8889}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { Job } from 'bullmq';
33import { ExecutorResponseInterface } from '../interfaces/executor-response.interface' ;
44import { ExecutorConfigInterface } from '../interfaces/executor-config.interface' ;
55import { join , dirname } from 'path' ;
6+ import { Logger } from '@nestjs/common' ;
67
78function convertNullToEmptyString ( obj ) {
89 if ( obj === null ) {
@@ -36,10 +37,11 @@ export async function executorTask(
3637 // const escapedJobDataArg = `'${jobDataArg.replace(/'/g, "'\\''")}'`;
3738
3839 try {
40+ Logger . debug ( `Execute command ${ command } with data ${ jobDataArg } ` , 'executorTask' ) ;
3941 const child = spawn ( join ( command ) , {
4042 shell : options ?. shell ?? true ,
4143 stdio : 'pipe' ,
42- cwd : dirname ( command )
44+ cwd : dirname ( command ) ,
4345 } ) ;
4446
4547 child . stdin . write ( jobDataArg ) ;
Original file line number Diff line number Diff line change @@ -31,10 +31,20 @@ export class BackendConfigService implements OnModuleInit {
3131 const files = crawler . crawl ( this . config . get < string > ( 'application.backendsPath' ) ) . sync ( ) . sort ( ) ;
3232
3333 for await ( const file of files ) {
34+ if ( ! / c o n f i g .y m l $ / . test ( file ) ) {
35+ this . logger . debug ( `Skipping ${ file } ...` ) ;
36+ continue ;
37+ }
38+
3439 this . logger . log ( `Loading ${ file } ...` ) ;
3540 const data = fs . readFileSync ( file , 'utf8' ) ;
3641 const config = YAML . parse ( data ) ;
3742
43+ if ( ! config . _version || ! config . name ) {
44+ this . logger . debug ( `Skipping with bad structure _version & name: ${ file } ...` ) ;
45+ continue ;
46+ }
47+
3848 try {
3949 if ( ! config . path ) config . path = path . dirname ( file ) ;
4050 const schema = plainToInstance ( BackendConfigV1Dto , config ) ;
You can’t perform that action at this time.
0 commit comments