Choose between Fork and Async supervisor modes
mainThe Supervisor Mode determines how the supervised actors (workers, dispatchers, etc.) are run relative to the supervisor process.
Fork Mode (Default & Recommended)
The supervisor forks a separate process for each supervised actor. This provides the best isolation and performance but uses more memory.
Async Mode
All actors run in the same process as the supervisor using different threads. This is useful if forking is not supported or memory is extremely constrained.
How to use Async mode:
- Run via CLI:
bin/jobs --mode async - Or set the environment variable:
SOLID_QUEUE_SUPERVISOR_MODE=async
Note: In async mode, the processes configuration option is ignored. This mode is separate from the worker's concurrency model (which uses threads or fibers).
bin/jobs --mode async