Skip to content

Commit

Permalink
(wait_for_verifications) logging
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Jan 23, 2024
1 parent df9bd1c commit f06e710
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,21 +536,21 @@ def wait_for_verifications(ctx):
# Check if timeout has been reached
if elapsed_time > timeout:
print(
f"Timeout reached: Verified submissions: {len(keyspace_verified_subs)} / {len(keyspace_subs)}"
f"Timeout reached (keyspace / keyspace_verified / postgres_verified): {len(keyspace_subs)} / {len(keyspace_verified_subs)} / {postgres_verified_subs_num}"
)
exit(1)

time.sleep(15)

print(
f"Waiting for verifications. Verified submissions: {len(keyspace_verified_subs)} / {len(keyspace_subs)}"
f"Waiting for verifications (keyspace / keyspace_verified / postgres_verified): {len(keyspace_subs)} / {len(keyspace_verified_subs)} / {postgres_verified_subs_num}"
)

keyspace_subs = keyspace_get_submissions()
keyspace_verified_subs = [sub for sub in keyspace_subs if sub["verified"]]

print(
f"All submissions have been verified (keyspace / keyspace_verified / postgres_verified): {len(keyspace_verified_subs)} / {len(keyspace_subs)} / {postgres_verified_subs_num}"
f"All submissions have been verified (keyspace / keyspace_verified / postgres_verified): {len(keyspace_subs)} / {len(keyspace_verified_subs)} / {postgres_verified_subs_num}"
)


Expand Down

0 comments on commit f06e710

Please sign in to comment.