RQ_DEFAULT_TIMEOUT doesn't work with Redis Sentinel #11168
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.3.9
Python version
3.9
Steps to Reproduce
time.sleep(310)
in the code (simulate long run)logs are
Expected Behavior
the RQ_DEFAULT_TIMEOUT parameter should be used for Redis Sentinel as the same way of Redis.
180s seems to be the default value of Python RQ.
https://github.com/rq/rq/blob/0691b4d46eb721b5fb5395a03fd770db7e1651f4/rq/queue.py#L41
Observed Behavior
the RQ_PARAMS in
netbox/netbox/netbox/settings.py
Line 626 in 860805b
'DEFAULT_TIMEOUT': RQ_DEFAULT_TIMEOUT,
for the Redis Sentinel case.I successfully tested to add that parameter in RQ_PARAMS.
The logs became
The text was updated successfully, but these errors were encountered: