market-maker icon indicating copy to clipboard operation
market-maker copied to clipboard

Exit code 0 on crash [NOK]

Open 4TT1L4 opened this issue 11 months ago • 1 comments

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.

4TT1L4 avatar Mar 01 '24 16:03 4TT1L4

I simulated a crash and saw 1 as exit code. Is there a reproducible example for this?

sourabhxyz avatar Mar 03 '24 03:03 sourabhxyz