INNER CODE UNIT · Python

ExitCode

efroemling/ballistica · tools/bacommon/app.py:17

class ExitCode(Enum):
    """Process exit codes a Ballistica app may return on a clean shutdown.

    These accompany a *clean* (non-crash) shutdown: the app tears down
    gracefully via the normal shutdown sequence and simply returns one
    of these as its process exit code. This is distinct from a
    fatal-error/abort exit (which routes through crash reporting); a
    nonzero value here means "we shut down cleanly, but the run was a
    failure". Supervisors such as the headless server-wrapper script
    (and BASN task orchestration) interpret nonzero values to decide
    whether restarting is worthwhile.
    """

    #: Normal successful exit.
    SUCCESS = 0

    #: A headless app could not bring up assets it requires to run (e.g.
    #: a construct-mode asset resolve failed terminally). Not transient

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…