addArgument( "days", InputArgument::OPTIONAL, 'Deletes finished records older than the specified number of days.', 1 ); } /** * @throws Exception */ protected function executeCommand(InputInterface $input, OutputInterface $output): int { $this->backgroundQueue->clearFinishedJobs($input->getArgument("days")); return self::SUCCESS; } }