Skip to content

Commit

Permalink
Merge pull request #45 from itkg-canne/fix-max-concurrent-jobs
Browse files Browse the repository at this point in the history
[BUGFIX] Do not process channels beyond max concurrent jobs count limit.
  • Loading branch information
pdenis committed Aug 17, 2017
2 parents ae2458a + 01e2f0f commit 07b112c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Command/ProcessDynamicChannelCommand.php
Expand Up @@ -147,6 +147,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$channel
)
);
return;
}

$groupFieldIdentifierListToProcess = array_slice(
Expand All @@ -155,7 +156,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$lockNames
),
0,
$input->getOption('concurrent-jobs-count')
$concurrentAvailableSlotsCount
);

foreach ($groupFieldIdentifierListToProcess as $identifier) {
Expand Down

0 comments on commit 07b112c

Please sign in to comment.