-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
to match AutopushUser's quicker initializion time when locust is spawning and setup a quick matching shape class Issue: SYNC-3916
@@ -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): |
There was a problem hiding this comment.
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.
There was a problem hiding this 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!
to match AutopushUser's quicker initializion time when locust is spawning
and setup a quick matching shape class
Issue: SYNC-3916