signals
signals
¶
Signal handling constants and utilities for Marianne error classification.
This module provides signal-related constants and helper functions used by the error classifier to determine whether a process killed by a signal should be retried or treated as a fatal error.
Signal Categories: - RETRIABLE_SIGNALS: Signals that indicate transient conditions (network, termination) - FATAL_SIGNALS: Signals that indicate crashes or unrecoverable errors
Functions¶
get_signal_name
¶
Get human-readable signal name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sig_num
|
int
|
The signal number (e.g., signal.SIGTERM) |
required |
Returns:
| Type | Description |
|---|---|
str
|
Human-readable signal name (e.g., "SIGTERM") or "signal N" if unknown |