Skip to content

Commit

Permalink
Fix invocation of clear background jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Niels <niels.muendler@inf.ethz.ch>
  • Loading branch information
nielstron committed Sep 10, 2024
1 parent 8cfc836 commit 6b236ee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Command/Classify.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Exception\ExceptionInterface;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

Expand Down Expand Up @@ -72,7 +73,11 @@ protected function configure() {
protected function execute(InputInterface $input, OutputInterface $output): int {
$this->logger->setCliOutput($output);

$this->clearBackgroundJobs->run($input, $output);
// pop "retry" flag from parameters passed to clear background jobs
$clearBackgroundJobs = new ArrayInput([
'command' => 'recognize:clear-background-jobs',
]);
$this->clearBackgroundJobs->run($clearBackgroundJobs, $output);

$models = array_values(array_filter([
ClusteringFaceClassifier::MODEL_NAME,
Expand Down

0 comments on commit 6b236ee

Please sign in to comment.