summaryrefslogtreecommitdiffstats
path: root/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-05-11 00:54:45 +0800
committerGitHub <noreply@github.com>2021-05-10 12:54:45 -0400
commit75d8297045b348878697710dc952677490ac58cc (patch)
tree85b7a4a0cbb2b12a507ac61aa3026da841601273 /docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
parent3656a2a67296a2f9e8212d5b1374a0a22c6b9653 (diff)
downloadgitea-75d8297045b348878697710dc952677490ac58cc.tar.gz
gitea-75d8297045b348878697710dc952677490ac58cc.zip
add note about ``cron.SCHEDULE`` format in document (#15812)
* add note about ``cron.SCHEDULE`` format in document Signed-off-by: a1012112796 <1012112796@qq.com> * Update custom/conf/app.example.ini Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'docs/content/doc/advanced/config-cheat-sheet.zh-cn.md')
-rw-r--r--docs/content/doc/advanced/config-cheat-sheet.zh-cn.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
index 1f7ae10c5d..79cfd94cc7 100644
--- a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
+++ b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
@@ -245,6 +245,11 @@ test01.xls: application/vnd.ms-excel; charset=binary
- `ENABLED`: 是否在后台运行定期任务。
- `RUN_AT_START`: 是否启动时自动运行。
+- `SCHEDULE` 所接受的格式
+ - 完整 crontab 控制, 例如 `* * * * * ?`
+ - 描述符, 例如 `@midnight`, `@every 1h30m` ...
+ - 更多细节参见 [cron api文档](https://pkg.go.dev/github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14)
+
### Cron - Update Mirrors (`cron.update_mirrors`)