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

Client instance service #5126

Merged
merged 5 commits into from
Oct 23, 2023
Merged

Client instance service #5126

merged 5 commits into from
Oct 23, 2023

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Oct 23, 2023

About the changes

Moved client instance scheduling to a scheduler service + simplified testing

Important files

Discussion points

@vercel
Copy link

vercel bot commented Oct 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Oct 23, 2023 1:15pm
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Oct 23, 2023 1:15pm

Copy link
Contributor

@FredrikOseberg FredrikOseberg left a 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.

Comment on lines +168 to +178
schedulerService.schedule(
clientInstanceService.bulkAdd.bind(clientInstanceService),
secondsToMilliseconds(5),
'bulkAddInstances',
);

schedulerService.schedule(
clientInstanceService.announceUnannounced.bind(clientInstanceService),
minutesToMilliseconds(5),
'announceUnannounced',
);
Copy link
Contributor

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?

Copy link
Contributor Author

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

@kwasniew kwasniew merged commit 8d8a975 into main Oct 23, 2023
6 checks passed
@kwasniew kwasniew deleted the client-instance-service branch October 23, 2023 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants