Wallet config debugging. More.
This commit is contained in:
parent
f5f247dcd8
commit
b109094683
|
@ -454,6 +454,8 @@ async def main(machine_specs):
|
||||||
logger.info("Started onboarding")
|
logger.info("Started onboarding")
|
||||||
global next_retry_reached_server_limit
|
global next_retry_reached_server_limit
|
||||||
last_used_config = None
|
last_used_config = None
|
||||||
|
logger.info("logger.info(last_used_config) 1")
|
||||||
|
logger.info(last_used_config)
|
||||||
ever_pending_creation = False
|
ever_pending_creation = False
|
||||||
machine_id = get_machine_id()
|
machine_id = get_machine_id()
|
||||||
|
|
||||||
|
@ -467,6 +469,9 @@ async def main(machine_specs):
|
||||||
logger.error("Can't load default power limits of nVidia GPU(s)")
|
logger.error("Can't load default power limits of nVidia GPU(s)")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
logger.info("logger.info(last_used_config) 2")
|
||||||
|
logger.info(last_used_config)
|
||||||
|
|
||||||
oc_config = {}
|
oc_config = {}
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
@ -484,9 +489,6 @@ async def main(machine_specs):
|
||||||
|
|
||||||
config_validation = validate_clore_config(clore_config)
|
config_validation = validate_clore_config(clore_config)
|
||||||
|
|
||||||
logger.info(config_validation)
|
|
||||||
logger.info(clore_config)
|
|
||||||
|
|
||||||
if config_validation == "Validation successful":
|
if config_validation == "Validation successful":
|
||||||
if "save_config" in clore_config and args.mode == "hive":
|
if "save_config" in clore_config and args.mode == "hive":
|
||||||
verify_or_update_file(clore_conf_path, json.dumps(clore_config))
|
verify_or_update_file(clore_conf_path, json.dumps(clore_config))
|
||||||
|
@ -496,11 +498,11 @@ async def main(machine_specs):
|
||||||
else:
|
else:
|
||||||
clore_config["stock_oc_override"] = oc_config
|
clore_config["stock_oc_override"] = oc_config
|
||||||
|
|
||||||
logger.info("Is config same")
|
logger.info("Is config different")
|
||||||
logger.info(clore_config != last_used_config)
|
logger.info(clore_config != last_used_config)
|
||||||
logger.info("Time")
|
logger.info(clore_config)
|
||||||
logger.info(time.time())
|
logger.info(last_used_config)
|
||||||
logger.info(next_retry_reached_server_limit)
|
|
||||||
if clore_config != last_used_config or (time.time() > next_retry_reached_server_limit and next_retry_reached_server_limit > 0):
|
if clore_config != last_used_config or (time.time() > next_retry_reached_server_limit and next_retry_reached_server_limit > 0):
|
||||||
last_used_config = clore_config.copy()
|
last_used_config = clore_config.copy()
|
||||||
if type(clore_config) == dict and "hostname_override" in clore_config:
|
if type(clore_config) == dict and "hostname_override" in clore_config:
|
||||||
|
@ -547,9 +549,12 @@ async def main(machine_specs):
|
||||||
logger.error(f"Could not parse config - {' | '.join(config_validation)}")
|
logger.error(f"Could not parse config - {' | '.join(config_validation)}")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
logger.error(e)
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(5)
|
||||||
|
|
||||||
|
logger.info("logger.info(last_used_config) 3")
|
||||||
|
logger.info(last_used_config)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
machine_specs = specs.get(benchmark_disk=True, mock=args.mock)
|
machine_specs = specs.get(benchmark_disk=True, mock=args.mock)
|
||||||
asyncio.run(main(machine_specs))
|
asyncio.run(main(machine_specs))
|
Loading…
Reference in New Issue