Skip to content

Commit

Permalink
Output normalization summary from NormalizationJobOrchestrator (#12046)
Browse files Browse the repository at this point in the history
  • Loading branch information
alovew authored and suhomud committed May 23, 2022
1 parent 58d6db8 commit 44420a2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

package io.airbyte.container_orchestrator;

import io.airbyte.commons.json.Jsons;
import io.airbyte.config.Configs;
import io.airbyte.config.NormalizationInput;
import io.airbyte.config.NormalizationSummary;
import io.airbyte.scheduler.models.IntegrationLauncherConfig;
import io.airbyte.scheduler.models.JobRunConfig;
import io.airbyte.workers.DefaultNormalizationWorker;
Expand Down Expand Up @@ -65,9 +67,9 @@ public Optional<String> runJob() throws Exception {

log.info("Running normalization worker...");
final Path jobRoot = WorkerUtils.getJobRoot(configs.getWorkspaceRoot(), jobRunConfig.getJobId(), jobRunConfig.getAttemptId());
normalizationWorker.run(normalizationInput, jobRoot);
final NormalizationSummary normalizationSummary = normalizationWorker.run(normalizationInput, jobRoot);

return Optional.empty();
return Optional.of(Jsons.serialize(normalizationSummary));
}

}

0 comments on commit 44420a2

Please sign in to comment.