Skip to content

Commit

Permalink
additional cleanup is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Azulinho committed Sep 2, 2023
1 parent a3b8754 commit 0a84be9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions utils/prove-backtesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,13 @@ def run_optimized_config(self) -> float:
log_msg("Incorrect KIND: type")
sys.exit(1)

cleanup()
if os.path.exists("state/binance.client"):
os.remove("state/binance.client.lockfile")
for f in glob.glob("tmp/*"):
os.remove(f)
for f in glob.glob("configs/coin.*.yaml"):
os.remove(f)

n_cpus: Optional[int] = os.cpu_count()

Expand Down

0 comments on commit 0a84be9

Please sign in to comment.