You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jose Torres (JIRA)" <ji...@apache.org> on 2018/02/15 22:05:00 UTC

[jira] [Created] (SPARK-23444) would like to be able to cancel jobs cleanly

Jose Torres created SPARK-23444:
-----------------------------------

             Summary: would like to be able to cancel jobs cleanly
                 Key: SPARK-23444
                 URL: https://issues.apache.org/jira/browse/SPARK-23444
             Project: Spark
          Issue Type: Wish
          Components: Spark Core
    Affects Versions: 2.4.0
            Reporter: Jose Torres


In Structured Streaming, we often need to cancel a Spark job in order to close the stream. SparkContext does not (as far as I can tell) provide a runJob handle which cleanly signals when a job was cancelled; it simply throws a generic SparkException. So we're forced to awkwardly parse this SparkException in order to determine whether the job failed because of a cancellation (which we expect and want to swallow) or another error (which we want to propagate).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org