Currently, both the listener and worker are spawned as tasks. If either of these tasks fails, the process may exit, which can reduce the resilience of the daemon. To improve robustness, we should implement error handling or task restarts so that the daemon can recover from individual task failures without exiting entirely.
Suggested actions:
- Add error handling for both listener and worker tasks.
- Consider implementing automatic task restarts if a task fails unexpectedly.
- Ensure that the daemon remains operational even if one of the tasks encounters an error.
This will help improve the overall reliability and uptime of the daemon process.
Issue: #7
I created this issue for @leynos from #4 (comment).
Tips and commands
Getting Help
Currently, both the listener and worker are spawned as tasks. If either of these tasks fails, the process may exit, which can reduce the resilience of the daemon. To improve robustness, we should implement error handling or task restarts so that the daemon can recover from individual task failures without exiting entirely.
Suggested actions:
This will help improve the overall reliability and uptime of the daemon process.
Issue: #7
I created this issue for @leynos from #4 (comment).
Tips and commands
Getting Help