-
Notifications
You must be signed in to change notification settings - Fork 4.5k
chore: stability pr for changes #35911
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,7 @@ | |
| import org.springframework.stereotype.Component; | ||
| import reactor.core.Exceptions; | ||
| import reactor.core.publisher.Mono; | ||
| import reactor.core.scheduler.Schedulers; | ||
|
|
||
| import java.io.IOException; | ||
| import java.nio.file.Path; | ||
|
|
@@ -93,7 +94,9 @@ public Mono<Path> saveArtifactToLocalRepo( | |
|
|
||
| // Save application to git repo | ||
| try { | ||
| return fileUtils.saveApplicationToGitRepo(baseRepoSuffix, artifactGitReference, branchName); | ||
| return fileUtils | ||
| .saveApplicationToGitRepo(baseRepoSuffix, artifactGitReference, branchName) | ||
| .subscribeOn(Schedulers.boundedElastic()); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be published on immediate to return back to the owning thread pool?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this flow is followed by other blocking calls in all 5 cases, we are good with not publishing this on. |
||
| } catch (IOException | GitAPIException e) { | ||
| log.error("Error occurred while saving files to local git repo: ", e); | ||
| throw Exceptions.propagate(e); | ||
|
|
||
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.
Should the inner callable be subscribed instead?
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.
It's the inner callable only.