-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve autopilot liveness check (#2236)
# Description This PR creates a shared liveness implementation between shadow and regular autopilot mode. Both now populate a thread-safe last auction timestamp whenever an auction has processed. The liveness check compares the elapsed time since that recorded timestamp with the maximum auction age. <!-- List of detailed changes (how the change is accomplished) --> # Changes - [x] Liveness checks are based on the last timestamp an auction runloop has successfully completed. - [x] The same liveness implementation is used across shadow and regular autopilot mode. Regular autopilot no longer uses the last update time in the solvable orders cache. ## How to test This can be tested manually by running the autopilot locally and checking http://localhost:9589/liveness. It responds with 200 if the autopilot is considered alive, 503 otherwise. Max auction age can also be tweaked using the --max-auction-age argument when running the autopilot. ## Related Issues - Fixes #2090
- Loading branch information
Showing
3 changed files
with
41 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters