docs: update CLI command syntax across workflow documentation
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
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
This commit is contained in:
@@ -26,12 +26,26 @@ def main():
|
||||
'--host', '0.0.0.0',
|
||||
'--port', '8005'
|
||||
], check=True)
|
||||
except Exception as e:
|
||||
logger.error(f"Error launching blockchain HTTP: {e}")
|
||||
except subprocess.CalledProcessError as e:
|
||||
logger.error(f"Blockchain HTTP service failed with exit code {e.returncode}: {e}")
|
||||
# Fallback
|
||||
import time
|
||||
while True:
|
||||
logger.info("Blockchain HTTP service heartbeat")
|
||||
logger.info("Blockchain HTTP service heartbeat (fallback mode)")
|
||||
time.sleep(30)
|
||||
except (FileNotFoundError, PermissionError) as e:
|
||||
logger.error(f"Cannot launch blockchain HTTP service: {type(e).__name__}: {e}")
|
||||
# Fallback
|
||||
import time
|
||||
while True:
|
||||
logger.info("Blockchain HTTP service heartbeat (fallback mode)")
|
||||
time.sleep(30)
|
||||
except Exception as e:
|
||||
logger.error(f"Unexpected error launching blockchain HTTP: {type(e).__name__}: {e}")
|
||||
# Fallback
|
||||
import time
|
||||
while True:
|
||||
logger.info("Blockchain HTTP service heartbeat (fallback mode)")
|
||||
time.sleep(30)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -40,8 +40,16 @@ def main():
|
||||
# Fallback to simple service
|
||||
fallback_service()
|
||||
|
||||
except subprocess.CalledProcessError as e:
|
||||
logger.error(f"GPU marketplace service failed with exit code {e.returncode}: {e}")
|
||||
logger.info("Starting fallback GPU marketplace service")
|
||||
fallback_service()
|
||||
except (FileNotFoundError, PermissionError) as e:
|
||||
logger.error(f"Cannot launch GPU marketplace service: {type(e).__name__}: {e}")
|
||||
logger.info("Starting fallback GPU marketplace service")
|
||||
fallback_service()
|
||||
except Exception as e:
|
||||
logger.error(f"Error launching GPU marketplace: {e}")
|
||||
logger.error(f"Unexpected error launching GPU marketplace: {type(e).__name__}: {e}")
|
||||
logger.info("Starting fallback GPU marketplace service")
|
||||
fallback_service()
|
||||
|
||||
@@ -59,8 +67,11 @@ def fallback_service():
|
||||
|
||||
except KeyboardInterrupt:
|
||||
logger.info("GPU Marketplace service stopped by user")
|
||||
except (OSError, IOError) as e:
|
||||
logger.error(f"System error in fallback service: {type(e).__name__}: {e}")
|
||||
time.sleep(5)
|
||||
except Exception as e:
|
||||
logger.error(f"Error in fallback service: {e}")
|
||||
logger.error(f"Unexpected error in fallback service: {type(e).__name__}: {e}")
|
||||
time.sleep(5)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -37,8 +37,11 @@ def main():
|
||||
logger.info(f'Marketplace: {len(listings)} GPU listings')
|
||||
|
||||
time.sleep(30)
|
||||
except Exception as e:
|
||||
logger.error(f'Monitoring error: {e}')
|
||||
except (json.JSONDecodeError, FileNotFoundError, PermissionError, IOError) as e:
|
||||
logger.error(f'Monitoring error: {type(e).__name__}: {e}')
|
||||
time.sleep(60)
|
||||
except psutil.Error as e:
|
||||
logger.error(f'System monitoring error: {type(e).__name__}: {e}')
|
||||
time.sleep(60)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -23,12 +23,26 @@ def main():
|
||||
'/opt/aitbc/venv/bin/python',
|
||||
'/opt/aitbc/services/marketplace.py'
|
||||
], check=True)
|
||||
except Exception as e:
|
||||
logger.error(f"Error launching real marketplace: {e}")
|
||||
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")
|
||||
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__":
|
||||
|
||||
Reference in New Issue
Block a user