public function write() { // update db.lines don't update the queue if a given line failed. foreach ($this->updateUnifiedLines() as $failedLine) { foreach ($failedLine['lines'] as $stamp) { unset($this->lines[$stamp]); } } //add lines to archive $this->saveLinesToArchive(); parent::write(); }