在 Zaqar,声明是否会延长 TTL?
In Zaqar, does a claim extend the TTL?
使用 Zaqar,假设您在队列 Queue
.
中有一条消息 M
让Queue.claim_timeout == Queue.message_ttl
(请忽略术语的误用,但也请随时纠正)。
假设我做了一个 claim(M)
并且我做了 no delete!
达到 claim_timeout
时会发生什么?
M
仍然可用
- 这意味着
message_ttl
是 "suspended" 而该消息已被认领
M
已自动删除
- 因为
message_ttl
也将达到
- 其他。
任何解释或评论都会有很大帮助。
谢谢,
科斯汀
答案似乎是1:
M
is still available
; that means the message_ttl was "suspended" while the message was claimed
我的陈述基于 Zaqar 文档:https://wiki.openstack.org/wiki/Zaqar/specs/api/v1#Claims
The server will extend the lifetime of claimed messages to be at least as long as the lifetime of the claim itself, plus a specified grace period to deal with crashed workers (up to 1209600 or 14 days including claim lifetime). If a claimed message would normally live longer than the grace period, it's expiration will not be adjusted.
使用 Zaqar,假设您在队列 Queue
.
M
让Queue.claim_timeout == Queue.message_ttl
(请忽略术语的误用,但也请随时纠正)。
假设我做了一个 claim(M)
并且我做了 no delete!
达到 claim_timeout
时会发生什么?
M
仍然可用- 这意味着
message_ttl
是 "suspended" 而该消息已被认领
- 这意味着
M
已自动删除- 因为
message_ttl
也将达到
- 因为
- 其他。
任何解释或评论都会有很大帮助。
谢谢, 科斯汀
答案似乎是1:
M
is still available ; that means the message_ttl was "suspended" while the message was claimed
我的陈述基于 Zaqar 文档:https://wiki.openstack.org/wiki/Zaqar/specs/api/v1#Claims
The server will extend the lifetime of claimed messages to be at least as long as the lifetime of the claim itself, plus a specified grace period to deal with crashed workers (up to 1209600 or 14 days including claim lifetime). If a claimed message would normally live longer than the grace period, it's expiration will not be adjusted.