Commit b5dce2d
Enforce maximum value for GlobalConfig.refresh_rate (#439)
## Changes
- Add `le=86400` to `GlobalConfig.refresh_rate`, capping the maximum
value at 1 day.
Values above this are now rejected at construction time with a clear
`ValidationError`.
## Notes
This PR is paired with groundlight/edge-endpoint#427, which makes the
model-updater
loop more responsive to `set_config` calls. Neither PR depends on the
other for correctness.
---------
Co-authored-by: Tim Huff <thuff@axon.com>
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 4c48e73 commit b5dce2d
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments