From 25934f88368d0e5457135cda22cd0ec30fe24e27 Mon Sep 17 00:00:00 2001 From: Tom McLean Date: Tue, 22 Aug 2023 14:19:57 +0100 Subject: [PATCH] feat: Testing changes to shutdown --- examples/nullchain.py | 23 ----------------------- vega_sim/null_service.py | 2 +- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/examples/nullchain.py b/examples/nullchain.py index 489967c87..55d9b277c 100644 --- a/examples/nullchain.py +++ b/examples/nullchain.py @@ -95,29 +95,6 @@ is_amendment=False, ) - print("starting") - import time - - for _ in range(100_000_000): - time.sleep(0.01) - vega.submit_order( - trading_key=MM_WALLET.name, - market_id=market_id, - time_in_force="TIME_IN_FORCE_GTC", - order_type="TYPE_LIMIT", - side="SIDE_SELL", - volume=1, - price=100, - wait=False, - ) - vega.wait_fn(1) - vega.cancel_order( - trading_key=MM_WALLET.name, - market_id=market_id, - ) - - print("done") - vega.submit_order( trading_key=MM_WALLET.name, market_id=market_id, diff --git a/vega_sim/null_service.py b/vega_sim/null_service.py index cdecacc28..6562f3ea6 100644 --- a/vega_sim/null_service.py +++ b/vega_sim/null_service.py @@ -594,7 +594,7 @@ def sighandler(signal, frame): else: logging.debug(f"VegaServiceNull exited after trap the {signal} signal") - logger.info("Received signal from parent process") + logger.debug("Received signal from parent process") logger.debug("Starting termination for processes") for name, process in processes.items():