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

16348: basic sync metrics (exec time) #16432

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,24 @@ public StandardSyncOutput run(final JobRunConfig jobRunConfig,
if (syncInput.getOperationSequence() != null && !syncInput.getOperationSequence().isEmpty()) {
for (final StandardSyncOperation standardSyncOperation : syncInput.getOperationSequence()) {
if (standardSyncOperation.getOperatorType() == OperatorType.NORMALIZATION) {
LOGGER.info(">>>NORMALIZATION STARTED: " + connectionId + " " + System.currentTimeMillis() + "\njob: " + jobRunConfig + "\nsource: " + sourceLauncherConfig + "\n dest: "
+ destinationLauncherConfig);
final Configs configs = new EnvConfigs();
final NormalizationInput normalizationInput = generateNormalizationInput(syncInput, syncOutput, configs);

final NormalizationSummary normalizationSummary =
normalizationActivity.normalize(jobRunConfig, destinationLauncherConfig, normalizationInput);
LOGGER.info(">>>NORMALIZATION FINISHED: " + connectionId + " " + System.currentTimeMillis());
syncOutput = syncOutput.withNormalizationSummary(normalizationSummary);
} else if (standardSyncOperation.getOperatorType() == OperatorType.DBT) {
LOGGER.info(">>>DBT STARTED: " + connectionId + " " + System.currentTimeMillis() + "\njob: " + jobRunConfig + "\nsource: " + sourceLauncherConfig + "\n dest: "
+ destinationLauncherConfig);
final OperatorDbtInput operatorDbtInput = new OperatorDbtInput()
.withDestinationConfiguration(syncInput.getDestinationConfiguration())
.withOperatorDbt(standardSyncOperation.getOperatorDbt());

dbtTransformationActivity.run(jobRunConfig, destinationLauncherConfig, syncInput.getResourceRequirements(), operatorDbtInput);
LOGGER.info(">>>DBT FINISHED: " + connectionId + " " + System.currentTimeMillis());
} else {
final String message = String.format("Unsupported operation type: %s", standardSyncOperation.getOperatorType());
LOGGER.error(message);
Expand Down