aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-16 22:20:08 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-05-16 22:20:08 +0200
commitb9fb13d2aa2e7c58e7f766f468fb64d496c28fa9 (patch)
treef3842d406bf393918c42b5fa830235f3a97eefe3 /modules
parentb07fbcf4c474fefeac20d1cac6f417ef705880b4 (diff)
downloadPuppet-b9fb13d2aa2e7c58e7f766f468fb64d496c28fa9.tar.gz
Puppet-b9fb13d2aa2e7c58e7f766f468fb64d496c28fa9.tar.zst
Puppet-b9fb13d2aa2e7c58e7f766f468fb64d496c28fa9.zip
Wait between calls to journal
Diffstat (limited to 'modules')
-rw-r--r--modules/role/templates/cryptoportfolio/api_logger.py.erb1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/role/templates/cryptoportfolio/api_logger.py.erb b/modules/role/templates/cryptoportfolio/api_logger.py.erb
index 9fe564e..a758a2e 100644
--- a/modules/role/templates/cryptoportfolio/api_logger.py.erb
+++ b/modules/role/templates/cryptoportfolio/api_logger.py.erb
@@ -105,4 +105,5 @@ while True:
105 lines = list(j) 105 lines = list(j)
106 if len(lines) > 0: 106 if len(lines) > 0:
107 send_to_discord(lines) 107 send_to_discord(lines)
108 time.sleep(5)
108 j.wait() 109 j.wait()