setInterval(60 * 60 * 24); $this->setTimeSensitivity(self::TIME_INSENSITIVE); } /** * @param mixed $argument * @inheritDoc */ protected function run($argument) { try { $this->taskMapper->deleteOlderThan(self::MAX_TASK_AGE_SECONDS); } catch (Exception $e) { $this->logger->warning('Failed to delete stale language model tasks', ['exception' => $e]); } } }