CoxAutomotiveDataSolutions / waimak

Waimak is an open-source framework that makes it easier to create complex data flows in Apache Spark.
Apache License 2.0
75 stars 16 forks source link

Clean up temporary folder by default after flow execution #72

Closed alexjbush closed 5 years ago

alexjbush commented 5 years ago

Description

This PR introduces behaviour to clean up the temporary folder (if given) after a flow has been executed.

This behaviour can be disabled by setting the configuration property spark.waimak.dataflow.removeTempAfterExecution to false.

In all cases, the folder will not be deleted if flow execution fails.

Fixes #70

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Unit tests

Requires docs change

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 543


Files with Coverage Reduction New Missed Lines %
waimak-hive/src/main/scala/com/coxautodata/waimak/metastore/HiveDBConnector.scala 1 96.0%
waimak-core/src/main/scala/com/coxautodata/waimak/dataflow/spark/SparkDataFlow.scala 1 85.51%
waimak-storage/src/main/scala/com/coxautodata/waimak/storage/AuditTableFile.scala 1 95.38%
waimak-core/src/main/scala/com/coxautodata/waimak/dataflow/spark/SparkInterceptors.scala 1 94.44%
waimak-core/src/main/scala/com/coxautodata/waimak/log/Logging.scala 1 30.77%
waimak-core/src/main/scala/com/coxautodata/waimak/dataflow/DataFlow.scala 1 93.38%
waimak-core/src/main/scala/com/coxautodata/waimak/dataflow/ParallelActionScheduler.scala 1 96.3%
waimak-storage/src/main/scala/com/coxautodata/waimak/storage/StorageActions.scala 1 94.23%
waimak-core/src/main/scala/com/coxautodata/waimak/dataflow/spark/SparkActions.scala 1 70.37%
waimak-experimental/src/main/scala/com/coxautodata/waimak/spark/app/SparkApp.scala 1 90.91%
<!-- Total: 12 -->
Totals Coverage Status
Change from base Build 537: 0.4%
Covered Lines: 1265
Relevant Lines: 1572

💛 - Coveralls