Back to feed
Dev.to
Dev.to
7/5/2026
The bug that taught me how to run one process per user

The bug that taught me how to run one process per user

Short summary

Process manager lost track of user workers on restart because state was in-memory only. Solution: persist registry and verify processes by PID + start time, handling Linux zombie processes. Author released WorkerDeck, an open-source library for robust process-per-user lifecycle management.

  • Process manager stored worker state only in memory, losing it on restart
  • Solution: persist registry and verify processes by PID plus start time to prevent duplicates
  • MIT-licensed WorkerDeck library implements safe start/stop/restart with self-healing

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more