We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schedulePending
taskq:{test}:stream
taskq
127.0.0.1:6379> XGROUP CREATE taskq:{test}:stream taskq $ MKSTREAM OK
127.0.0.1:6379> XADD taskq:{test}:stream * body apple "1634099225543-0" 127.0.0.1:6379> XADD taskq:{test}:stream * body orange "1634099233517-0" 127.0.0.1:6379> XADD taskq:{test}:stream * body banana "1634099237506-0" 127.0.0.1:6379> XLEN taskq:{test}:stream (integer) 3
127.0.0.1:6379> XPENDING taskq:{test}:stream taskq - + 5 (empty array)
foo
127.0.0.1:6379> XREADGROUP GROUP taskq foo STREAMS taskq:{test}:stream > 1) 1) "taskq:{test}:stream" 2) 1) 1) "1634099225543-0" 2) 1) "body" 2) "apple" 2) 1) "1634099233517-0" 2) 1) "body" 2) "orange" 3) 1) "1634099237506-0" 2) 1) "body" 2) "banana" 127.0.0.1:6379> XPENDING taskq:{test}:stream taskq - + 5 1) 1) "1634099225543-0" 2) "foo" 3) (integer) 71364 4) (integer) 1 2) 1) "1634099233517-0" 2) "foo" 3) (integer) 71364 4) (integer) 1 3) 1) "1634099237506-0" 2) "foo" 3) (integer) 71364 4) (integer) 1
127.0.0.1:6379> XDEL taskq:{test}:stream 1634099225543-0 (integer) 1 127.0.0.1:6379> XPENDING taskq:{test}:stream taskq - + 5 1) 1) "1634099225543-0" 2) "foo" 3) (integer) 122716 4) (integer) 1 2) 1) "1634099233517-0" 2) "foo" 3) (integer) 122716 4) (integer) 1 3) 1) "1634099237506-0" 2) "foo" 3) (integer) 122716 4) (integer) 1
All messages will leaves in pending list that schedulePending method will got an error trying to release a deleted messages issue: #143
When Delete and Release do we should execute XACK and then execute XDEL https://github.com/vmihailenco/taskq/blob/v3/redisq/queue.go#L225 https://github.com/vmihailenco/taskq/blob/v3/redisq/queue.go#L245
Delete
Release
XACK
XDEL
127.0.0.1:6379> XACK taskq:{test}:stream taskq 1634099233517-0 (integer) 1 127.0.0.1:6379> XDEL taskq:{test}:stream 1634099233517-0 (integer) 1 127.0.0.1:6379> XPENDING taskq:{test}:stream taskq - + 5 1) 1) "1634099225543-0" 2) "foo" 3) (integer) 199531 4) (integer) 1 2) 1) "1634099237506-0" 2) "foo" 3) (integer) 199531 4) (integer) 1
The text was updated successfully, but these errors were encountered:
Hello, is this still an issue?
Sorry, something went wrong.
No branches or pull requests
Example
taskq:{test}:stream
) and consumer group(taskq
)foo
allocated 3 messagesAll messages will leaves in pending list that
schedulePending
method will got an error trying to release a deleted messagesissue: #143
When
Delete
andRelease
do we should executeXACK
and then executeXDEL
https://github.com/vmihailenco/taskq/blob/v3/redisq/queue.go#L225
https://github.com/vmihailenco/taskq/blob/v3/redisq/queue.go#L245
The text was updated successfully, but these errors were encountered: