5 min interval for error webhook logging > 10 seconds

This commit is contained in:
Oleg Silkin 2019-09-06 20:38:01 -04:00
parent bf2bdcd7a4
commit ab898f1207

View file

@ -50,7 +50,7 @@ async def report_errors_to_slack_webhook(app):
try: try:
while True: while True:
await asyncio.shield(post_errors_to_slack(client, app)) await asyncio.shield(post_errors_to_slack(client, app))
await asyncio.sleep(300) await asyncio.sleep(10)
except asyncio.CancelledError: except asyncio.CancelledError:
await asyncio.shield(post_errors_to_slack(client, app)) await asyncio.shield(post_errors_to_slack(client, app))