We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f457f commit 4627b07Copy full SHA for 4627b07
zulip/integrations/zephyr/sync-public-streams
@@ -60,7 +60,14 @@ if __name__ == "__main__":
60
zulip_client = zulip.Client(client="ZulipSyncPublicStreamsBot/0.1")
61
62
while True:
63
- time.sleep(15)
+ # Sync every 5 minutes because this makes a very large network
64
+ # request, due to Zephyr users who subscribe to 10K+ class
65
+ # names generated by a script.
66
+ #
67
+ # This delay means we won't subscribe to new Zephyr classes
68
+ # until 5 minutes after they are created in Zulip; this isn't
69
+ # great but an acceptable tradeoff.
70
+ time.sleep(300)
71
public_streams = fetch_public_streams()
72
if public_streams is None:
73
continue
0 commit comments