tweag / sparkle

Haskell on Apache Spark.
BSD 3-Clause "New" or "Revised" License
447 stars 30 forks source link

return exit codes #100

Closed facundominguez closed 3 years ago

facundominguez commented 7 years ago

Currently, sparkle arranges for main to be called but it ignores the returned exit code. This value should be somehow propagated to Java to give it an opportunity to do proper clean up.

The main use case is cleaning up temporary files produced by spark when there are test failures in test suites that rehearse sparkle.

Related to this: it has been noted elsewhere that the main() function that sparkle calls during bootstrap never returns control to the caller.

facundominguez commented 6 years ago

Probably, it should be done by throwing a Java exception before returning control to the caller.

facundominguez commented 3 years ago

Propagating exceptions to spark has been implemented in #154