Skip to content

Add configurable mediorum repair interval and enable/disable#151

Merged
raymondjacobson merged 1 commit intomainfrom
feat/configurable-repair-interval
Mar 20, 2026
Merged

Add configurable mediorum repair interval and enable/disable#151
raymondjacobson merged 1 commit intomainfrom
feat/configurable-repair-interval

Conversation

@raymondjacobson
Copy link
Copy Markdown
Contributor

@raymondjacobson raymondjacobson commented Mar 20, 2026

Summary

  • Adds OPENAUDIO_REPAIR_ENABLED env var (default: true) to allow disabling mediorum repair entirely
  • Adds OPENAUDIO_REPAIR_INTERVAL env var (default: 1h) to control the repair cycle interval using Go duration strings (e.g. 30m, 2h)
  • Preserves existing default behavior (repair enabled, 1 hour interval)

Test plan

  • Verify default behavior unchanged (repair runs every hour with no env vars set)
  • Set OPENAUDIO_REPAIR_ENABLED=false and confirm repair does not run (log message emitted)
  • Set OPENAUDIO_REPAIR_INTERVAL=30m and confirm repair runs every 30 minutes
  • Set invalid OPENAUDIO_REPAIR_INTERVAL value and confirm warning is logged with 1h fallback

🤖 Generated with Claude Code

Expose two top-level environment variables to control mediorum repair behavior:
- OPENAUDIO_REPAIR_ENABLED (default: true) - set to "false" to disable repair
- OPENAUDIO_REPAIR_INTERVAL (default: 1h) - Go duration string for repair cycle interval

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@raymondjacobson raymondjacobson merged commit fa51bad into main Mar 20, 2026
4 checks passed
@raymondjacobson raymondjacobson deleted the feat/configurable-repair-interval branch March 20, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant