File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,13 @@ export default class Queue {
280280 const useRemoteDiscovery = this . ctx . env . USE_REMOTE_DISCOVERY || this . ctx . config . useRemoteDiscovery ;
281281
282282 if ( useRemoteDiscovery && ! this . ctx . config . delayedUpload && ! this . ctx . config . allowDuplicateSnapshotNames ) {
283- const maxConcurrentProcessing = this . ctx . env . MAX_CONCURRENT_PROCESSING === 0 ? this . MAX_CONCURRENT_PROCESSING : this . ctx . env . MAX_CONCURRENT_PROCESSING ;
283+ let maxConcurrentProcessing = this . ctx . env . MAX_CONCURRENT_PROCESSING === 0 ? this . MAX_CONCURRENT_PROCESSING : this . ctx . env . MAX_CONCURRENT_PROCESSING ;
284+ if ( maxConcurrentProcessing > 15 || maxConcurrentProcessing < 1 ) {
285+ this . ctx . log . info ( `Larger than 15 concurrent processing. Setting to 5.` ) ;
286+ maxConcurrentProcessing = 5 ;
287+ }
288+
289+ this . ctx . log . info ( `Max concurrent processing: ${ maxConcurrentProcessing } ` ) ;
284290 const snapshotsToProcess : Array < Snapshot > = [ ] ;
285291 const maxSnapshots = Math . min ( maxConcurrentProcessing - this . activeProcessingCount , this . snapshots . length ) ;
286292
You can’t perform that action at this time.
0 commit comments