Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make times between auction run_loops configurable (#1994)
# Description We were made aware that we are currently sending *a lot* of auctions on xdai staging. This is because the auctions are mainly empty (or solvers quickly return an empty solution) and then our run_loop sleeps for a hardcoded amount of 1s, which is way to short. This PR makes this value configurable. It reuses the existing `auction_update_interval` which decides how often we prepare a new auction. Maybe this value should be separate, but at least we shouldn't dispatch auctions more often than we update them (otherwise we may dispatch the same auction multiple times which is likely not going to change the outcome) # Changes - Make the sleep between run_loops configurable - Deduct the time the run loop has take from this value to make sure we don't wait for a long time if a solution was found and mined ## How to test Run autopilot on an empty orderbook. See new auctions are now created much slower than before
- Loading branch information