Skip to content

Commit

Permalink
Merge branch 'master' of github.com:meedan/presto into cv2-3551-prints
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Aug 1, 2023
2 parents 78f3f0b + fa62427 commit 2d33638
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/queue/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ def safely_respond(self, model: Model) -> Tuple[List[Dict[str, str]], List[Dict[
Return responses if no failure.
"""
messages = self.receive_messages(model.BATCH_SIZE)
print("Current message batch: "+str(messages))
try:
responses = model.respond(copy.deepcopy(messages))
except:
responses = []
print("Current response batch: "+str(responses))
return messages, responses

def fingerprint(self, model: Model):
Expand Down
2 changes: 2 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@

print("Beginning fingerprinter loop...")
while True:
print("Starting fingerprinting process...")
queue.fingerprint(model)
print("Finishing fingerprinting process...")

0 comments on commit 2d33638

Please sign in to comment.