-
-
Notifications
You must be signed in to change notification settings - Fork 723
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
Client instance service #5126
Client instance service #5126
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
…-instance-service
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.
LGTM, one minor question.
schedulerService.schedule( | ||
clientInstanceService.bulkAdd.bind(clientInstanceService), | ||
secondsToMilliseconds(5), | ||
'bulkAddInstances', | ||
); | ||
|
||
schedulerService.schedule( | ||
clientInstanceService.announceUnannounced.bind(clientInstanceService), | ||
minutesToMilliseconds(5), | ||
'announceUnannounced', | ||
); |
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.
Where these previously configurable by environment variables? Or were the parameters in instance-service.ts never used?
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.
They were default parameters on the constructor that never got overwritten in prod, only in tests
About the changes
Moved client instance scheduling to a scheduler service + simplified testing
Important files
Discussion points