-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Closed
Labels
type/enhancementAn improvement of existing functionalityAn improvement of existing functionality
Description
- Gitea version (or commit ref): v1.10.0
- Git version: v2.20.1
- Operating system: Debian Buster
- Database (use
[x]):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
Description
Hey back the team, second issue of the evening.
It looks like we cannot make the task scheduler use Redis over an UNIX socket, as for the cache storage or the session provider.
[task]
QUEUE_TYPE = redis
QUEUE_CONN_STR = network=unix addrs=/var/run/redis/redis-server.sock password=$PASSWORD db=$N pool_size=$X idle_timeout=$T
The service hard-fails at startup with :
routers/init.go:107:GlobalInit() [F] Failed to initialize task scheduler: dial tcp [::1]:6379: connect: connection refused
So this issue got multiple purposes :
- Should we be able to achieve this ?
- Why connection strings are not parsed consistently across different configuration entries ?
addrbecomesaddrs- Token separator is sometimes
,and some other times - Some options as
network,pool_sizeoridle_timeoutare de facto not interpreted (still according to the parser sources of thetaskscheduler)
- kind/proposal :
cache,session,taskand issueindexerconnection strings should be configured the same way.
Bye again 👋
Metadata
Metadata
Assignees
Labels
type/enhancementAn improvement of existing functionalityAn improvement of existing functionality