mirror of
https://gitea.com/gitea/docs.git
synced 2026-09-20 04:58:52 +00:00
docs: document NOTICE_ON_SUCCESS for every cron task (#552)
Several cron tasks in the cheat sheet listed `ENABLE_SUCCESS_NOTICE` or `NO_SUCCESS_NOTICE`. Gitea reads neither, only `NOTICE_ON_SUCCESS`. `NO_SUCCESS_NOTICE` was removed in https://github.com/go-gitea/gitea/pull/19221. 1. Replace both dead keys with `NOTICE_ON_SUCCESS` (default `false`). 2. Fix "Notice if not success" descriptions, which inverted the key's meaning. 3. List the key for `cleanup_hook_task_table`, `cleanup_actions`, `cleanup_action_runs` and `gc_lfs`, which honor it but omitted it. Matches https://github.com/go-gitea/gitea/pull/39352. Written by Claude. Reviewed-on: https://gitea.com/gitea/docs/pulls/552 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: silverwind <[email protected]>
This commit is contained in:
+1
-1
@@ -991,7 +991,7 @@ Gitea 建立以下非唯一隊列:
|
||||
|
||||
- `ENABLED`: **false**: 啟用服務。
|
||||
- `RUN_AT_START`: **false**: 在啟動時運行任務(如果啟用)。
|
||||
- `NO_SUCCESS_NOTICE`: **false**: 設定為 true 以關閉成功通知。
|
||||
- `NOTICE_ON_SUCCESS`: **false**: 設定為 true 以打開成功通知。
|
||||
- `SCHEDULE`: **@every 168h**: Cron 語法,用於設定多長時間進行檢查。
|
||||
- `OLDER_THAN`: **8760h**: 早於此表達式的任何系統通知都將從資料庫中刪除。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user