-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
Description
I used the app.example.ini but it was not in sync with the implementation and got a deprecation warning.
The offending Golang implementation is located here:
Lines 13 to 15 in 2da1dcf
| deprecatedSetting(rootCfg, "task", "QUEUE_TYPE", "queue.task", "TYPE", "v1.19.0") | |
| deprecatedSetting(rootCfg, "task", "QUEUE_CONN_STR", "queue.task", "CONN_STR", "v1.19.0") | |
| deprecatedSetting(rootCfg, "task", "QUEUE_LENGTH", "queue.task", "LENGTH", "v1.19.0") |
The example app is located here
gitea/custom/conf/app.example.ini
Lines 2380 to 2394 in 2da1dcf
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;[task] | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; | |
| ;; Task queue type, could be `channel` or `redis`. | |
| ;QUEUE_TYPE = channel | |
| ;; | |
| ;; Task queue length, available only when `QUEUE_TYPE` is `channel`. | |
| ;QUEUE_LENGTH = 1000 | |
| ;; | |
| ;; Task queue connection string, available only when `QUEUE_TYPE` is `redis`. | |
| ;; If there is a password of redis, use `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` or `redis+cluster://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` for `redis-clsuter`. | |
| ;QUEUE_CONN_STR = "redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s" |
Gitea Version
1.21.11
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
2.39.2
Operating System
Debian 12
How are you running Gitea?
Download from github releases Linux AMD64 build.
Database
PostgreSQL
