Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: simplify StoredNotifAutopushUser's on_start #614

Merged
merged 6 commits into from
Feb 15, 2024

Conversation

pjenvey
Copy link
Member

@pjenvey pjenvey commented Feb 14, 2024

to match AutopushUser's quicker initializion time when locust is spawning

and setup a quick matching shape class

Issue: SYNC-3916

to match AutopushUser's quicker initializion time when locust is spawning

and setup a quick matching shape class

Issue: SYNC-3916
@pjenvey pjenvey requested review from jrconlin and b4handjr February 14, 2024 17:10
@@ -85,3 +86,11 @@ def tick(self) -> TickTuple | None:
spawn_rate: float = max(abs(users - self.get_current_user_count()), 1)

return users, spawn_rate, self.user_classes


class StoredNotifAutopushLoadTestShape(AutopushLoadTestShape):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding StoredNotifAutopushUser to AutopushLoadTestShape seemed to force both classes usage during the load test. So I setup this subclass for now so we can focus on solely StoredNotifAutopushUser, we can revisit this later.

jrconlin
jrconlin previously approved these changes Feb 14, 2024
Copy link
Collaborator

@b4handjr b4handjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After testing this a few times, I think this looks good and is usable. Thanks Phil!

@b4handjr b4handjr merged commit c284111 into master Feb 15, 2024
1 check passed
@b4handjr b4handjr deleted the feat/stored-initialize-SYNC-3916 branch February 15, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants