Each Karafka process defines exit statuses to indicate how the process terminated, offering clarity on operational outcome. Below, you can find the meaning behind each of the exit codes used:
Exit Code Description
0 Smooth shutdown: all work completed as expected, consumers stopped, etc.
1 Ruby exit code for syntax errors or other boot problems.
2 Forceful shutdown: not all consumers finished their work due to exceeding shutdown_timeout.
3 Exit code for an orphaned Swarm node.
--- ## See Also - [Deployment](https://karafka.io/docs/Operations-Deployment.md) - Handling exit codes in production deployments - [Signals and States](https://karafka.io/docs/Operations-Signals-and-States.md) - Understanding process lifecycle and signals --- *Last modified: 2025-11-03 14:04:02*