reject message whenn the list is empty
This commit is contained in:
@@ -95,7 +95,9 @@ class LinkValidator(threading.Thread):
|
||||
print("will ack")
|
||||
ch.basic_ack(delivery_tag=method.delivery_tag)
|
||||
else:
|
||||
print("empty list")
|
||||
print("empty list, no need to ack")
|
||||
time.sleep(60)
|
||||
ch.basic_reject(delivery_tag=method.delivery_tag, requeue=True)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user