mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-18 03:58:52 +00:00
add note about `cron.SCHEDULE` format in document (#15812)
* add note about ``cron.SCHEDULE`` format in document Signed-off-by: a1012112796 <[email protected]> * Update custom/conf/app.example.ini Co-authored-by: zeripath <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: techknowlogick <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
zeripath
techknowlogick
parent
d0d901e50f
commit
aa67687199
@@ -704,6 +704,11 @@ NB: You must have `DISABLE_ROUTER_LOG` set to `false` for this option to take ef
|
|||||||
- `RUN_AT_START`: **false**: Run cron tasks at application start-up.
|
- `RUN_AT_START`: **false**: Run cron tasks at application start-up.
|
||||||
- `NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
|
- `NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
|
||||||
|
|
||||||
|
- `SCHEDULE` accept formats
|
||||||
|
- Full crontab specs, e.g. `* * * * * ?`
|
||||||
|
- Descriptors, e.g. `@midnight`, `@every 1h30m` ...
|
||||||
|
- See more: [cron decument](https://pkg.go.dev/github.com/gogs/[email protected])
|
||||||
|
|
||||||
### Basic cron tasks - enabled by default
|
### Basic cron tasks - enabled by default
|
||||||
|
|
||||||
#### Cron - Cleanup old repository archives (`cron.archive_cleanup`)
|
#### Cron - Cleanup old repository archives (`cron.archive_cleanup`)
|
||||||
|
|||||||
@@ -245,6 +245,11 @@ test01.xls: application/vnd.ms-excel; charset=binary
|
|||||||
|
|
||||||
- `ENABLED`: 是否在后台运行定期任务。
|
- `ENABLED`: 是否在后台运行定期任务。
|
||||||
- `RUN_AT_START`: 是否启动时自动运行。
|
- `RUN_AT_START`: 是否启动时自动运行。
|
||||||
|
- `SCHEDULE` 所接受的格式
|
||||||
|
- 完整 crontab 控制, 例如 `* * * * * ?`
|
||||||
|
- 描述符, 例如 `@midnight`, `@every 1h30m` ...
|
||||||
|
- 更多细节参见 [cron api文档](https://pkg.go.dev/github.com/gogs/[email protected])
|
||||||
|
|
||||||
|
|
||||||
### Cron - Update Mirrors (`cron.update_mirrors`)
|
### Cron - Update Mirrors (`cron.update_mirrors`)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user