From 23bd53f6f094785a592c4063c97161362fc594f8 Mon Sep 17 00:00:00 2001
From: Emmanuel Ormancey <emmanuel.ormancey@cern.ch>
Date: Fri, 8 Oct 2021 16:28:43 +0200
Subject: [PATCH] improvements

---
 Python/stress-testing/stress_testing.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Python/stress-testing/stress_testing.py b/Python/stress-testing/stress_testing.py
index a652d18..195512a 100644
--- a/Python/stress-testing/stress_testing.py
+++ b/Python/stress-testing/stress_testing.py
@@ -94,6 +94,8 @@ def main(argv):
             # Renew token
             if (cnt % 100) == 99:
                 Config.renew()
+            if (cnt % 1000) == 999:
+                print("Processed", cnt, "channels")
             # Add one grappa gourp as member
             try:
                 add_group_to_channel(channel_id, Config.NOTIFTEST_GROUPS[cnt % len(Config.NOTIFTEST_GROUPS)])
@@ -115,6 +117,8 @@ def main(argv):
             # Renew token
             if (cnt % 100) == 99:
                 Config.renew()
+            if (cnt % 1000) == 999:
+                print("Processed", cnt, "channels")
             for i in range(0, countnotifications):
                 send_notification(channel_id, Config.NOTIFICATION_SUMMARY + str(i)) 
             cnt = cnt+1
-- 
GitLab