Skip to content

feat: add input validation for scheduler options#4

Open
chenzihui222 wants to merge 1 commit into
knowecon:mainfrom
chenzihui222:feat/input-validation
Open

feat: add input validation for scheduler options#4
chenzihui222 wants to merge 1 commit into
knowecon:mainfrom
chenzihui222:feat/input-validation

Conversation

@chenzihui222

Copy link
Copy Markdown

为调度器选项添加输入验证,防止配置错误。\n\n## Changes\n- desired_retention 必须在 0.0-1.0 之间\n- maximum_interval 必须是正整数 (>= 1)\n- 清晰的错误消息,包含实际值

Add validation for critical scheduler parameters:

- desired_retention must be between 0.0 and 1.0 (exclusive)
- maximum_interval must be a positive integer (>= 1)
- Provide clear error messages with actual values received

This prevents misconfiguration and provides early feedback
on invalid scheduler settings.
@chenzihui222 chenzihui222 marked this pull request as ready for review March 9, 2026 11:31
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