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

chore(*): Remove RxJava dependency from Igor #778

Merged
merged 4 commits into from
Jun 13, 2020

Conversation

jervi
Copy link
Contributor

@jervi jervi commented Jun 10, 2020

I removed the two test classes that focused only on the scheduler. I'll argue that they actually test the framework and not the code, and because there's nothing equivalent to RxJava's TestScheduler in Spring, I figured I'd just delete them.

@cfieber
Copy link
Contributor

cfieber commented Jun 10, 2020

This is great!

Do you know if there is already a TaskSchedulerCustomizer bean registered in igor? By default the task scheduler has a pool size of 1, so all of these would be run serially.

If not, you can do something like

  @Bean
  TaskSchedulerCustomizer taskSchedulerCustomizer() {
    return (scheduler) -> scheduler.setPoolSize(/* some task scheduling config props value */);
  }

There might be some other interesting options on TaskScheduler worth customizing in this case as well..

@@ -2,9 +2,6 @@ dependencies {
implementation "com.netflix.spinnaker.kork:kork-artifacts"
implementation "com.netflix.spinnaker.kork:kork-core"

// TODO(rz): Get rid of this dependency!
implementation "io.reactivex:rxjava"
Copy link
Member

Choose a reason for hiding this comment

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

😍 😍 😍 😍 😍

Copy link
Member

@robzienert robzienert left a comment

Choose a reason for hiding this comment

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

This is lovely, thank you!

As for @cfieber's comment, there hasn't been TaskScheduler use before in Igor, so you should be good to add the customizer as he recommended.

@jervi
Copy link
Contributor Author

jervi commented Jun 10, 2020

I've added the pool size property 👍 Thanks for reviewing!

I removed the two tests that focused only on the scheduler. I'll argue that they actually test the framework and not the code, and because there's nothing equivalent to RxJava's `TestScheduler` in Spring, I figured I'd just delete the whole thing.
@cfieber cfieber added the ready to merge Approved and ready for merge label Jun 13, 2020
@mergify mergify bot merged commit af05e7f into spinnaker:master Jun 13, 2020
@mergify mergify bot added the auto merged label Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants