Implement ingesting to Redis from Threshold

This commit is contained in:
2022-09-07 07:20:30 +01:00
parent e3b2e1f36d
commit 79b1bee9e4
10 changed files with 46 additions and 50 deletions

4
db.py
View File

@@ -41,7 +41,7 @@ def store_message(msg):
try:
# Bulk index operations
api_response = api_instance.bulk(body_post) # , async_req=True
print(api_response)
# print(api_response)
except ApiException as e:
print("Exception when calling IndexApi->bulk: %s\n" % e)
@@ -80,7 +80,7 @@ def store_message_bulk(data):
try:
# Bulk index operations
api_response = api_instance.bulk(body_post) # , async_req=True
print(api_response)
# print(api_response)
except ApiException as e:
print("Exception when calling IndexApi->bulk: %s\n" % e)