option('after-id')); $batch = max(1, min((int) $this->option('batch'), 1000)); $publicOnly = (bool) $this->option('public-only'); $staleHours = max(0, (int) $this->option('stale-hours')); BackfillArtworkVectorIndexJob::dispatch($afterId, $batch, $publicOnly, $staleHours); $this->info('Queued artwork vector repair (after_id=' . $afterId . ', batch=' . $batch . ', public_only=' . ($publicOnly ? 'yes' : 'no') . ', stale_hours=' . $staleHours . ').'); return self::SUCCESS; } }