]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/templates/cryptoportfolio/api_logger.py.erb
wait for journal rather than polling
[perso/Immae/Projets/Puppet.git] / modules / role / templates / cryptoportfolio / api_logger.py.erb
index 3fb14a0feab57a4b9f3a0869717705bd22601fbb..ad296e8f429195c7ef55c5cd1c36322c037eb94c 100644 (file)
@@ -50,4 +50,4 @@ while True:
     lines = [entry["MESSAGE"] for entry in list(j)]
     if len(lines) > 0:
         send_to_discord("\n".join(lines))
-    time.sleep(3)
+    j.wait()