Some checks failed
API Endpoint Tests / test-api-endpoints (push) Waiting to run
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
- Updated marketplace commands: `marketplace --action` → `market` subcommands - Updated wallet commands: direct flags → `wallet` subcommands - Updated AI commands: `ai-submit`, `ai-status` → `ai submit`, `ai status` - Updated blockchain commands: `chain` → `blockchain info` - Standardized command structure across all workflow files - Affected files: MULTI_NODE_MASTER_INDEX.md, TEST_MASTER_INDEX.md, multi-node-blockchain-marketplace
50 lines
1.5 KiB
Python
Executable File
50 lines
1.5 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Real Marketplace Launcher for AITBC Production
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
import subprocess
|
|
import logging
|
|
|
|
# Configure logging
|
|
logging.basicConfig(level=logging.INFO)
|
|
logger = logging.getLogger(__name__)
|
|
|
|
def main():
|
|
"""Main real marketplace launcher function"""
|
|
logger.info("Starting AITBC Real Marketplace Launcher")
|
|
|
|
try:
|
|
# Launch real marketplace service
|
|
logger.info("Launching real marketplace service")
|
|
subprocess.run([
|
|
'/opt/aitbc/venv/bin/python',
|
|
'/opt/aitbc/services/marketplace.py'
|
|
], check=True)
|
|
except subprocess.CalledProcessError as e:
|
|
logger.error(f"Marketplace service failed with exit code {e.returncode}: {e}")
|
|
# Fallback
|
|
import time
|
|
while True:
|
|
logger.info("Real Marketplace service heartbeat (fallback mode)")
|
|
time.sleep(30)
|
|
except (FileNotFoundError, PermissionError) as e:
|
|
logger.error(f"Cannot launch marketplace service: {type(e).__name__}: {e}")
|
|
# Fallback
|
|
import time
|
|
while True:
|
|
logger.info("Real Marketplace service heartbeat (fallback mode)")
|
|
time.sleep(30)
|
|
except Exception as e:
|
|
logger.error(f"Unexpected error launching marketplace: {type(e).__name__}: {e}")
|
|
# Fallback
|
|
import time
|
|
while True:
|
|
logger.info("Real Marketplace service heartbeat (fallback mode)")
|
|
time.sleep(30)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|