mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-18 01:43:41 -05:00
docs: mention seconds are required in cron pattern
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
},
|
},
|
||||||
"refresh_interval": {
|
"refresh_interval": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The interval at which Cup should check for updates. Must be a valid cron expression. Reference: https://github.com/Hexagon/croner-rust#pattern",
|
"description": "The interval at which Cup should check for updates. Must be a valid cron expression. Seconds are not optional. Reference: https://github.com/Hexagon/croner-rust#pattern",
|
||||||
"minLength": 11
|
"minLength": 11
|
||||||
},
|
},
|
||||||
"registries": {
|
"registries": {
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ Cup can automatically refresh the results when running in server mode. Simply ad
|
|||||||
|
|
||||||
```jsonc
|
```jsonc
|
||||||
{
|
{
|
||||||
"refresh_interval": "0 0,30 * * * *" // Check twice an hour
|
"refresh_interval": "0 */30 * * * *", // Check twice an hour
|
||||||
// Other options
|
// Other options
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
You can use a cron expression to specify the refresh interval. The reference is [here](https://github.com/Hexagon/croner-rust#pattern)
|
You can use a cron expression to specify the refresh interval. Note that seconds are not optional. The reference is [here](https://github.com/Hexagon/croner-rust#pattern)
|
||||||
|
|||||||
Reference in New Issue
Block a user