-
Notifications
You must be signed in to change notification settings - Fork 0
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
Parallelize merge processes #18
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
…suite/merge-orchestrator into parallelize-merge-processes
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
…suite/merge-orchestrator into parallelize-merge-processes
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Show resolved
Hide resolved
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
src/main/java/org/gridsuite/merge/orchestrator/server/BalancesAdjustmentService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/IgmQualityCheckService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/merge/orchestrator/server/MergeOrchestratorService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
// write each IGM status | ||
var l = Streams.zip(processConfigs.stream(), importedCases.stream(), (processConfig, processConfigNetworkUuid) -> | ||
processConfigNetworkUuid.flatMap(uuid -> merge(processConfig, dateTime, date, tso, valid, uuid))).collect(Collectors.toList()); | ||
return Flux.fromIterable(l).flatMap(Function.identity()).collectList(); |
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.
use Flux.merge instead of fromIterable(l).flatMap(Function.identity())
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
9101846
to
cea7bef
Compare
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
src/main/java/org/gridsuite/merge/orchestrator/server/ServicesUtils.java
Outdated
Show resolved
Hide resolved
Signed-off-by: chamseddine <[email protected]>
Signed-off-by: chamseddine <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
UUID processConfigNetworkUuid = caseFetcherService.importCase(caseUuid); | ||
merge(processConfig, dateTime, date, tso, valid, processConfigNetworkUuid); | ||
} | ||
List<Mono<UUID>> importedCases = processConfigs.stream().map(ignored -> caseFetcherService.importCase(caseUuid)).collect(Collectors.toList()); |
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.
I think the first one will be imported twice no ? @ChamseddineBhd
Signed-off-by: chamseddine [email protected]