query object is not outputing the TIMEOUT
argument in case of 0 ( 0 means unlimited for RediSearch TIMEOUT parameter )
#2839
Labels
bug
Bug
Version: 4.6.0 or any above 4.4.1 given the timeout parameter was introduced there (https://github.com/redis/redis-py/releases/tag/v4.4.1)
Description: I was checking why we where not seeing the timeout parameter on a RediSearch query monitor with timeout(0) which means unlimited execution time on RediSearch.
Given the following:
notice that on the output of q.get_args() we're missing the
TIMEOUT 0
:checking the code we see that the integer 0 will be interpreted as False on the condition https://github.com/redis/redis-py/blob/master/redis/commands/search/query.py#L197
The text was updated successfully, but these errors were encountered: