Skip to content

Commit

Permalink
feat: Testing changes to shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMcL committed Aug 22, 2023
1 parent 61ba459 commit 25934f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
23 changes: 0 additions & 23 deletions examples/nullchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion vega_sim/null_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 25934f8

Please sign in to comment.