Skip to content

Implement Auto-restart Policies (autorestart) #6

Description

@alexmond

Feature Request: Auto-restart Policies

Implement supervisord-compatible auto-restart policies to automatically restart processes based on exit conditions.

Requirements

  • Add AutoRestartPolicy enum with values: FALSE, TRUE, UNEXPECTED
  • Implement restart logic in ProcessManager
  • Add configuration option autorestart to ProcessConfig
  • Handle different restart scenarios based on exit codes
  • Add tests for all restart policies

Acceptance Criteria

  • Processes restart automatically based on configured policy
  • FALSE: Never restart
  • TRUE: Always restart regardless of exit code
  • UNEXPECTED: Restart only on unexpected exit codes (not in exitcodes list)
  • Configuration is backward compatible

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestprocess-managementIssues related to process lifecycle and management

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions