market-maker
market-maker copied to clipboard
Exit code 0 on crash [NOK]
Problem:
- When the MMB crashes due to some unexpected error like
ERROR: Tries exceeded, given maximum:....
the bot should exit with non-zero exit code. Zero is used for successful execution.
Solution:
- Make sure to return a non-zero exit code when the bot crashes.
Resources:
Further explanation:
In Linux and Unix-based systems, a successful exit code for an application is typically 0. An exit code, or return code, is a small number passed from a child process (or application) back to the parent process upon completion of its execution. By convention, an exit code of 0 signifies that the program executed successfully without any errors. On the other hand, any non-zero exit code indicates an error or abnormal termination, with different non-zero values potentially signifying different types of errors depending on the application's design.
I simulated a crash and saw 1
as exit code. Is there a reproducible example for this?