Skip to content

Commit

Permalink
Explicitly disable control metrics at the end of the job.
Browse files Browse the repository at this point in the history
This is needed when the main method can be invoked more than once externally.
  • Loading branch information
yruslan committed Mar 5, 2024
1 parent e3f81db commit afb9ad8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import za.co.absa.enceladus.utils.config.ConfigReader
import za.co.absa.enceladus.utils.modules.SourcePhase
import za.co.absa.enceladus.utils.types.{Defaults, DefaultsByFormat}
import za.co.absa.enceladus.utils.udf.UDFLibrary
import za.co.absa.atum.AtumImplicits._

object StandardizationAndConformanceJob extends StandardizationAndConformanceExecution {
private val jobName = "Enceladus Standardization&Conformance"
Expand Down Expand Up @@ -60,6 +61,7 @@ object StandardizationAndConformanceJob extends StandardizationAndConformanceExe
// post processing deliberately rereads the output ... same as above
runPostProcessing(SourcePhase.Conformance, preparationResult, cmd)
} finally {
spark.disableControlMeasuresTracking()
finishJob(cmd)
}
}
Expand Down

0 comments on commit afb9ad8

Please sign in to comment.