Simplify gpu_marketplace list command and fix miner PATH for nvidia-smi
Some checks failed
CLI Tests / test-cli (push) Waiting to run
Systemd Sync / sync-systemd (push) Waiting to run
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled

This commit is contained in:
OWL
2026-05-27 13:45:07 +02:00
parent d78cb85fd7
commit 59e55a27eb
2 changed files with 3 additions and 10 deletions

View File

@@ -258,22 +258,15 @@ def bid(ctx, gpu_count: int, max_price: float, duration_hours: int, specs: Optio
@click.option('--type', type=click.Choice(['offer', 'bid', 'all']), default='all', help='Filter by type')
@click.pass_context
def list(ctx, provider: Optional[str], status: Optional[str], type: str):
"""List GPU marketplace offers and bids"""
"""List GPU marketplace offers and bids (no island credentials required)"""
try:
# Load CLI config
config = get_config()
# Load island credentials
credentials = safe_load_credentials()
if not credentials:
return
island_id = get_island_id()
# Query GPU service for GPU marketplace transactions
try:
params = {
'transaction_type': 'gpu_marketplace',
'island_id': island_id
}
if provider:
params['provider_node_id'] = provider
@@ -318,7 +311,7 @@ def list(ctx, provider: Optional[str], status: Optional[str], type: str):
"Created": tx.get('created_at', '')[:19]
})
output(market_data, ctx.obj.get('output_format', 'table'), title=f"GPU Marketplace ({island_id[:16]}...)")
output(market_data, ctx.obj.get('output_format', 'table'), title="GPU Marketplace")
except NetworkError as e:
error(f"Network error querying blockchain: {e}")
raise click.Abort()

View File

@@ -6,7 +6,7 @@ After=network.target ollama.service aitbc-coordinator-api.service
Type=simple
User=root
WorkingDirectory=/opt/aitbc/apps/miner
Environment="PATH=/opt/aitbc/venv/bin"
Environment="PATH=/opt/aitbc/venv/bin:/usr/bin:/usr/local/bin"
Environment="PYTHONPATH=/opt/aitbc"
Environment="COORDINATOR_URL=http://localhost:8011"
Environment="MINER_ID=aitbc-miner-1"