option('retry')) { $ledger->retry(); } $items = $ledger->items(true); $kept = count(array_filter($items, fn (array $item) => $item['priced_by'] === 'service')); $fixed = count(array_filter($items, fn (array $item) => $item['priced_by'] === 'config')); $open = count(array_filter($items, fn (array $item) => $item['tokens'] > 0 && $item['priced_by'] === null)); $this->info(count($items)." rows: {$kept} with a kept price, {$fixed} priced with the fixed rates, {$open} without a price."); if ($open > 0) { $this->line('Rows without a price are not asked again for an hour (or until --retry) when the price source could not answer, and never when it answered without one.'); } return self::SUCCESS; } }