Page MenuHomePhabricator

[lib] Batch BaseAutoJoinCommunityHandler
ClosedPublic

Authored by ashoat on Oct 2 2024, 11:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 8:38 AM
Unknown Object (File)
Wed, Dec 18, 8:38 AM
Unknown Object (File)
Wed, Dec 18, 8:38 AM
Unknown Object (File)
Wed, Dec 18, 8:38 AM
Unknown Object (File)
Wed, Dec 18, 8:37 AM
Unknown Object (File)
Mon, Dec 2, 10:44 AM
Unknown Object (File)
Mon, Dec 2, 9:56 AM
Unknown Object (File)
Mon, Dec 2, 7:29 AM
Subscribers

Details

Summary

This diff updates BaseAutoJoinCommunityHandler to work in batches of 5, and to avoid triggering a joinCommunity for a single community more than once.

Test Plan

Varun tested this in his local environment, where he has set up a reproduction of the production environment where we have a lot of communities tagged with Farcaster channels, and he tested signing in as a user with a lot of channels

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

not reviewing too closely because it's late

This revision is now accepted and ready to land.Oct 3 2024, 12:32 AM

Add sleep(1000) before joinCommunity. Testing on prod this avoided the lag issue

This revision was landed with ongoing or failed builds.Oct 3 2024, 12:41 AM
This revision was automatically updated to reflect the committed changes.