mapper = $mapper; // Run once a day at off-peak time $this->setInterval(24 * 60 * 60); $this->setTimeSensitivity(self::TIME_INSENSITIVE); } protected function run($argument) { // Delete all shares expired 24 hours ago $this->mapper->deleteExpired($this->time->getTime() - 60 * 60 * 24); } }