setInterval(24 * 60 * 60); # run one a day $this->setTimeSensitivity(IJob::TIME_INSENSITIVE); } protected function run($argument): void { // Iterate over all AI Providers queues and remove results older than one week. // This is reinsurance job, if everything is without errors, then each provider cleans up the garbage itself. try { $this->mapperTextProcessing->removeAllOlderThenThat(self::overdueTime); $this->mapperSpeechToText->removeAllOlderThenThat(self::overdueTime); $this->mapperTranslation->removeAllOlderThenThat(self::overdueTime); } catch (Exception) { } } }