In benchmark observer worker, include claimed messages when listing
This a tiny change to make the observer behave more as you might expect an auditing/diagnostic client to behave when obeserving a task distribution queue. Change-Id: Idcb8eb970c1f205b9fc7efdfeb860805b1a45640
This commit is contained in:
parent
97cf725bdd
commit
40aa3bfc01
@ -70,7 +70,8 @@ def observer(queues, stats, test_duration, limit):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
marktime.start('list_messages')
|
marktime.start('list_messages')
|
||||||
cursor = queue['q'].messages(limit=limit, marker=queue['m'])
|
cursor = queue['q'].messages(limit=limit, marker=queue['m'],
|
||||||
|
include_claimed=True)
|
||||||
total_elapsed += marktime.stop('list_messages').seconds
|
total_elapsed += marktime.stop('list_messages').seconds
|
||||||
total_succeeded += 1
|
total_succeeded += 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user