Skip to content

Improve daemon resilience: handle task failures for listener and worker #7

@sourcery-ai

Description

@sourcery-ai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions