public function flush(ProcessState $state): void
    {
        $modulo = $this->getOption($state, 'flush_every');
        if (0 === $this->counter % $modulo) {
            $state->setSkipped(true);
        } else {
            $state->setOutput($this->counter);
        }
    }