We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7d048b commit 7a279c4Copy full SHA for 7a279c4
spark/ingestion/src/main/scala/feast/ingestion/IngestionJob.scala
@@ -122,8 +122,11 @@ object IngestionJob {
122
config.mode match {
123
case Modes.Offline =>
124
val sparkSession = BasePipeline.createSparkSession(config)
125
- BatchPipeline.createPipeline(sparkSession, config)
126
- sparkSession.close()
+ try {
+ BatchPipeline.createPipeline(sparkSession, config)
127
+ } finally {
128
+ sparkSession.close()
129
+ }
130
case Modes.Online =>
131
132
try {
0 commit comments